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:
@ -23,6 +23,7 @@ import (
|
||||
)
|
||||
|
||||
func TestGetStagingPath(t *testing.T) {
|
||||
t.Parallel()
|
||||
var stagingPath string
|
||||
// test with nodestagevolumerequest
|
||||
nsvr := &csi.NodeStageVolumeRequest{
|
||||
|
@ -25,6 +25,7 @@ import (
|
||||
)
|
||||
|
||||
func TestHasSnapshotFeature(t *testing.T) {
|
||||
t.Parallel()
|
||||
tests := []struct {
|
||||
features string
|
||||
hasFeature bool
|
||||
@ -45,6 +46,7 @@ func TestHasSnapshotFeature(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestValidateImageFeatures(t *testing.T) {
|
||||
t.Parallel()
|
||||
tests := []struct {
|
||||
imageFeatures string
|
||||
rbdVol *rbdVolume
|
||||
|
Reference in New Issue
Block a user