Skip to content

Commit

Permalink
Fix windows filepath
Browse files Browse the repository at this point in the history
Signed-off-by: Cornelius Weig <[email protected]>
  • Loading branch information
corneliusweig committed Jul 26, 2019
1 parent b7f09f7 commit 16c1607
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/skaffold/config/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package config

import (
"path/filepath"
"strings"
"testing"

Expand Down Expand Up @@ -79,7 +80,7 @@ func TestResolveConfigFile(t *testing.T) {
testutil.Run(t, "", func(t *testutil.T) {
actual, err := ResolveConfigFile("")
t.CheckNoError(err)
const suffix = ".skaffold/config"
suffix := filepath.FromSlash(".skaffold/config")
if !strings.HasSuffix(actual, suffix) {
t.Errorf("expecting %q to have suffix %q", actual, suffix)
}
Expand Down

0 comments on commit 16c1607

Please sign in to comment.