mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
cleanup: addresses paralleltest linter
The Go linter paralleltest checks that the t.Parallel gets called for the test method and for the range of test cases within the test. Updates: #2025 Signed-off-by: Yati Padia <ypadia@redhat.com>
This commit is contained in:
@ -22,6 +22,7 @@ import (
|
||||
|
||||
// very basic tests for the moment.
|
||||
func TestIDLocker(t *testing.T) {
|
||||
t.Parallel()
|
||||
fakeID := "fake-id"
|
||||
locks := NewVolumeLocks()
|
||||
// acquire lock for fake-id
|
||||
@ -52,6 +53,7 @@ func TestIDLocker(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestOperationLocks(t *testing.T) {
|
||||
t.Parallel()
|
||||
volumeID := "test-vol"
|
||||
lock := NewOperationLock()
|
||||
err := lock.GetCloneLock(volumeID)
|
||||
|
Reference in New Issue
Block a user