Skip to content

Commit

Permalink
fix windows UT
Browse files Browse the repository at this point in the history
  • Loading branch information
reingart committed Jan 18, 2025
1 parent 0611204 commit f0edb32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/skaffold/build/docker/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ func TestDockerCLIBuild(t *testing.T) {
t.Override(&docker.DefaultAuthHelper, stubAuth{})
t.Override(&osCreateTemp, func(dir, pattern string) (*os.File, error) {
tmp := t.TempFile("metadata*.json", []byte(metadata))
os.Rename(tmp, "metadata.json")
err := os.Symlink(tmp, "metadata.json")
t.Logf("Symlink %s = %v", tmp, err)
return os.Open("metadata.json")
})
t.Override(&config.GetConfigForCurrentKubectx, func(configFile string) (*config.ContextConfig, error) {
Expand Down

0 comments on commit f0edb32

Please sign in to comment.