Skip to content

Commit 16c1607

Browse files
committed
Fix windows filepath
Signed-off-by: Cornelius Weig <[email protected]>
1 parent b7f09f7 commit 16c1607

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/skaffold/config/util_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
package config
1818

1919
import (
20+
"path/filepath"
2021
"strings"
2122
"testing"
2223

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

0 commit comments

Comments
 (0)