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 c47ce51 commit 67357a4
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 @@ -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",
Expand All @@ -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)
Expand Down

0 comments on commit 67357a4

Please sign in to comment.