Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathsreekanth committed Dec 13, 2024
1 parent a1ea85d commit 60c247b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,14 +412,14 @@ func TestCreateVolume(t *testing.T) {

tests := []struct {
name string
volumeparam types.VolumeParam
volumeparam *types.VolumeParam
protectiondomain string
storagepoolname string
error string
}{
{
name: "valid volume create",
volumeparam: types.VolumeParam{
volumeparam: &types.VolumeParam{
Name: "mock-volume-name",
VolumeSizeInKb: "1024",
StoragePoolID: "mock-storage-pool-id",
Expand All @@ -437,7 +437,7 @@ func TestCreateVolume(t *testing.T) {
t.Fatal(err)
}

_, err = client.CreateVolume(context.Background(), &tc.volumeparam, tc.storagepoolname, tc.protectiondomain)
_, err = client.CreateVolume(tc.volumeparam, tc.storagepoolname, tc.protectiondomain)
if err != nil {
if tc.error != err.Error() {
t.Fatal(err)
Expand Down

0 comments on commit 60c247b

Please sign in to comment.