From 67357a443ead56be4c6187c16d496f26849d66aa Mon Sep 17 00:00:00 2001 From: Bharath Sreekanth Date: Fri, 13 Dec 2024 18:13:59 +0000 Subject: [PATCH] Fix warning --- instance_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/instance_test.go b/instance_test.go index 9ec4f81..3ba6d23 100644 --- a/instance_test.go +++ b/instance_test.go @@ -411,14 +411,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", @@ -436,7 +436,7 @@ func TestCreateVolume(t *testing.T) { t.Fatal(err) } - _, err = client.CreateVolume(&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)