test: fix windows test failure
This commit is contained in:
parent
308d3263bc
commit
c3e36cc653
|
|
@ -849,8 +849,10 @@ func TestCopyFromVolume(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, test := range cases {
|
||||
test := test //pin
|
||||
t.Run(test.desc, func(t *testing.T) {
|
||||
if test.desc == "valid copy" && runtime.GOOS == "windows" {
|
||||
t.Skip("Skipping test on Windows")
|
||||
}
|
||||
|
||||
// Setup
|
||||
_ = os.MkdirAll(filepath.Join(d.workingMountDir, testCSIVolume, testCSIVolume), os.ModePerm)
|
||||
|
||||
|
|
@ -862,6 +864,5 @@ func TestCopyFromVolume(t *testing.T) {
|
|||
t.Errorf("[test: %s] Unexpected error: %v, expected error: %v", test.desc, err, test.expectErr)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue