From f0edb328d7c411163695166ce7a8bdbfc1115321 Mon Sep 17 00:00:00 2001 From: Mariano Reingart Date: Fri, 17 Jan 2025 22:55:02 -0600 Subject: [PATCH] fix windows UT --- pkg/skaffold/build/docker/docker_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/skaffold/build/docker/docker_test.go b/pkg/skaffold/build/docker/docker_test.go index bac6b66b91f..0d56ddeea54 100644 --- a/pkg/skaffold/build/docker/docker_test.go +++ b/pkg/skaffold/build/docker/docker_test.go @@ -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) {