From 263725388c8944e1aa868d59e088e63d1b242f33 Mon Sep 17 00:00:00 2001 From: Vitaliy Leschenko Date: Thu, 19 Oct 2023 12:25:03 +0100 Subject: [PATCH] Fix tests --- pkg/mounter/refcounter_windows_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/mounter/refcounter_windows_test.go b/pkg/mounter/refcounter_windows_test.go index 54fb04bdb4b..6b09e9159c9 100644 --- a/pkg/mounter/refcounter_windows_test.go +++ b/pkg/mounter/refcounter_windows_test.go @@ -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") } @@ -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") }