Skip to content

Commit

Permalink
fix windows paths in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
loosebazooka committed Jan 17, 2020
1 parent b599e1c commit 9667f3a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/skaffold/build/jib/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"fmt"
"os"
"os/exec"
"strings"
"testing"
"time"

Expand Down Expand Up @@ -135,7 +136,5 @@ func getFileTime(file string, t *testing.T) time.Time {

// for paths that contain "\", they must be escaped in json strings
func escapeBackslashes(path string) string {
// currently don't do anything so I can verify windows tests fail
return path
//return strings.Replace(path, `\`, `\\`, -1)
return strings.Replace(path, `\`, `\\`, -1)
}

0 comments on commit 9667f3a

Please sign in to comment.