Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliy-leschenko committed Oct 19, 2023
1 parent d754461 commit 2637253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/mounter/refcounter_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func TestIncementVolumeIDReferencesCount(t *testing.T) {
t.Error("mapping file container does not exist")
}

reference := mappingPathContainer + "\\" + "vol1"
reference := mappingPathContainer + "\\" + getMd5("vol1")
if file, err := os.Stat(reference); os.IsNotExist(err) || file.IsDir() {
t.Error("reference file does not exist")
}
Expand All @@ -195,7 +195,7 @@ func TestDecrementVolumeIDReferencesCount(t *testing.T) {
t.Error("mapping file container does not exist")
}

reference := mappingPathContainer + "\\" + "vol1"
reference := mappingPathContainer + "\\" + getMd5("vol1")
if _, err := os.Stat(reference); os.IsExist(err) {
t.Error("reference file exists")
}
Expand Down

0 comments on commit 2637253

Please sign in to comment.