Skip to content

Commit f422a25

Browse files
committed
Fixed TestAssetsFromDir unit test failure in Windows
1 parent 444f0c3 commit f422a25

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/minikube/machine/filesync_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,6 @@ func TestAssetsFromDir(t *testing.T) {
127127
}
128128

129129
actualFiles, err := assetsFromDir(testFileBaseDir, test.vmPath, test.flatten)
130-
if err != nil {
131-
t.Fatalf("got unexpected error adding minikube dir assets: %v", err)
132-
}
133130

134131
t.Cleanup(func() {
135132
for _, f := range actualFiles {
@@ -139,6 +136,10 @@ func TestAssetsFromDir(t *testing.T) {
139136
}
140137
})
141138

139+
if err != nil {
140+
t.Fatalf("got unexpected error adding minikube dir assets: %v", err)
141+
}
142+
142143
got := make(map[string]string)
143144
for _, actualFile := range actualFiles {
144145
got[actualFile.GetSourcePath()] = actualFile.GetTargetDir()

0 commit comments

Comments
 (0)