Add tests for checking of uncertain device paths

This commit is contained in:
Hemant Kumar
2023-12-11 17:15:16 -05:00
parent ed0facacfa
commit 56dd5ab10f
5 changed files with 92 additions and 23 deletions

View File

@@ -869,8 +869,8 @@ func (fv *FakeVolume) GetSetUpDeviceCallCount() int {
// Block volume support
func (fv *FakeVolume) GetGlobalMapPath(spec *volume.Spec) (string, error) {
fv.RLock()
defer fv.RUnlock()
fv.Lock()
defer fv.Unlock()
fv.GlobalMapPathCallCount++
return fv.getGlobalMapPath()
}