mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
util: remove deleteLock test as it is enforced by the controller
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
parent
c42d4768ca
commit
abe6a6e5ac
@ -60,10 +60,6 @@ func TestOperationLocks(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Errorf("failed to acquire clone lock for %s %s", volumeID, err)
|
||||
}
|
||||
err = lock.GetDeleteLock(volumeID)
|
||||
if err == nil {
|
||||
t.Errorf("expected to fail for GetDeleteLock for %s", volumeID)
|
||||
}
|
||||
|
||||
err = lock.GetExpandLock(volumeID)
|
||||
if err == nil {
|
||||
@ -106,11 +102,6 @@ func TestOperationLocks(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Errorf("failed to acquire restore lock for %s %s", volumeID, err)
|
||||
}
|
||||
// try for snapshot delete lock
|
||||
err = lock.GetDeleteLock(volumeID)
|
||||
if err == nil {
|
||||
t.Errorf("expected to fail for GetDeleteLock for %s", volumeID)
|
||||
}
|
||||
// release all restore locks
|
||||
lock.ReleaseRestoreLock(volumeID)
|
||||
lock.ReleaseRestoreLock(volumeID)
|
||||
@ -120,10 +111,6 @@ func TestOperationLocks(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Errorf("failed to acquire createSnapshot lock for %s %s", volumeID, err)
|
||||
}
|
||||
err = lock.GetDeleteLock(volumeID)
|
||||
if err == nil {
|
||||
t.Errorf("expected to fail for GetDeleteLock for %s", volumeID)
|
||||
}
|
||||
lock.ReleaseSnapshotCreateLock(volumeID)
|
||||
|
||||
err = lock.GetDeleteLock(volumeID)
|
||||
|
Loading…
Reference in New Issue
Block a user