mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-02 09:47:06 +00:00
unittests: Fixes TestReplaceFile for Windows
Currently, the test TestReplaceFile/neither_parent_nor_file_exists fails because the error encountered doesn't match the expected error. On Windows, if a file is missing, the encountered error is: The system cannot find the file specified. And if a folder / parent folder is missing, this error is encoutered instead: The system cannot find the path specified.
This commit is contained in:
@@ -313,7 +313,7 @@ func TestReplaceFile(t *testing.T) {
|
|||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
desc: "neither parent nor file exists",
|
desc: "neither parent nor file exists",
|
||||||
err: missingFileError,
|
err: missingFolderError,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
for _, c := range cases {
|
for _, c := range cases {
|
||||||
|
Reference in New Issue
Block a user