From 8d1a98debc299101baa0c5f89308008ecf5579aa Mon Sep 17 00:00:00 2001 From: Zhiwei Liang Date: Mon, 4 Mar 2024 17:06:17 -0500 Subject: [PATCH] make format --- test/integration/instance_config_test.go | 3 +-- test/integration/instances_test.go | 5 ----- test/integration/network_ranges_test.go | 2 -- test/integration/nodebalancers_test.go | 1 - test/integration/object_storage_keys_test.go | 1 - test/integration/profile_sshkeys_test.go | 1 - test/integration/volumes_test.go | 1 - 7 files changed, 1 insertion(+), 13 deletions(-) diff --git a/test/integration/instance_config_test.go b/test/integration/instance_config_test.go index 1bdbed250..1e7a79a5a 100644 --- a/test/integration/instance_config_test.go +++ b/test/integration/instance_config_test.go @@ -67,7 +67,7 @@ func setupInstanceWith3Interfaces(t *testing.T, fixturesYaml string) ( t, fixturesYaml, func(client *Client, opts *InstanceCreateOptions) { - opts.Region = getRegionsWithCaps(t, client, []string{"VPCs"})[0] + opts.Region = getRegionsWithCaps(t, client, []string{"Linodes", "VPCs"})[0] }, ) if err != nil { @@ -384,7 +384,6 @@ func TestInstance_ConfigInterface_Update(t *testing.T) { intfc.ID, updateOpts, ) - if err != nil { t.Errorf("an error occurs when updating an interface in config %v", config.ID) } diff --git a/test/integration/instances_test.go b/test/integration/instances_test.go index 7a9e64003..352521e3c 100644 --- a/test/integration/instances_test.go +++ b/test/integration/instances_test.go @@ -230,7 +230,6 @@ func TestInstance_Disk_ListMultiple(t *testing.T) { Label: "go-disk-test-" + randLabel(), Size: 2000, }) - if err != nil { t.Errorf("Error creating disk after a private image: %s", err) } @@ -357,7 +356,6 @@ func TestInstance_Rebuild(t *testing.T) { } _, err = client.WaitForEventFinished(context.Background(), instance.ID, linodego.EntityLinode, linodego.ActionLinodeCreate, *instance.Created, 180) - if err != nil { t.Errorf("Error waiting for instance created: %s", err) } @@ -371,7 +369,6 @@ func TestInstance_Rebuild(t *testing.T) { Type: "g6-standard-2", } instance, err = client.RebuildInstance(context.Background(), instance.ID, rebuildOpts) - if err != nil { t.Fatal(err) } @@ -404,7 +401,6 @@ func TestInstance_Clone(t *testing.T) { *instance.Created, 180, ) - if err != nil { t.Errorf("Error waiting for instance created: %s", err) } @@ -435,7 +431,6 @@ func TestInstance_Clone(t *testing.T) { *clonedInstance.Created, 240, ) - if err != nil { t.Fatal(err) } diff --git a/test/integration/network_ranges_test.go b/test/integration/network_ranges_test.go index 36dfb459b..b50623271 100644 --- a/test/integration/network_ranges_test.go +++ b/test/integration/network_ranges_test.go @@ -87,7 +87,6 @@ func TestIPv6Range_Share(t *testing.T) { strings.TrimSuffix(ipRange.Range, "/64"), }, }) - if err != nil { t.Fatal(err) } @@ -98,7 +97,6 @@ func TestIPv6Range_Share(t *testing.T) { strings.TrimSuffix(ipRange.Range, "/64"), }, }) - if err != nil { t.Fatal(err) } diff --git a/test/integration/nodebalancers_test.go b/test/integration/nodebalancers_test.go index b3b903aa1..fd18fb275 100644 --- a/test/integration/nodebalancers_test.go +++ b/test/integration/nodebalancers_test.go @@ -42,7 +42,6 @@ func TestNodeBalancer_Update(t *testing.T) { Label: &renamedLabel, } nodebalancer, err = client.UpdateNodeBalancer(context.Background(), nodebalancer.ID, updateOpts) - if err != nil { t.Errorf("Error renaming nodebalancer, %s", err) } diff --git a/test/integration/object_storage_keys_test.go b/test/integration/object_storage_keys_test.go index beb013e7f..a91ee068f 100644 --- a/test/integration/object_storage_keys_test.go +++ b/test/integration/object_storage_keys_test.go @@ -67,7 +67,6 @@ func TestObjectStorageKey_Update(t *testing.T) { Label: renamedLabel, } objectStorageKey, err = client.UpdateObjectStorageKey(context.Background(), objectStorageKey.ID, updateOpts) - if err != nil { t.Errorf("Error renaming objectStorageKey, %s", err) } diff --git a/test/integration/profile_sshkeys_test.go b/test/integration/profile_sshkeys_test.go index d51cfeaa1..843aea9ef 100644 --- a/test/integration/profile_sshkeys_test.go +++ b/test/integration/profile_sshkeys_test.go @@ -68,7 +68,6 @@ func TestSSHKey_Update(t *testing.T) { Label: renamedLabel, } sshkey, err = client.UpdateSSHKey(context.Background(), sshkey.ID, updateOpts) - if err != nil { t.Errorf("Error renaming sshkey, %s", err) } diff --git a/test/integration/volumes_test.go b/test/integration/volumes_test.go index 66d60e79f..70ac4d045 100644 --- a/test/integration/volumes_test.go +++ b/test/integration/volumes_test.go @@ -94,7 +94,6 @@ func TestVolume_WaitForLinodeID_nil(t *testing.T) { t.Errorf("Error setting up volume test, %s", err) } _, err = client.WaitForVolumeLinodeID(context.Background(), volume.ID, nil, 20) - if err != nil { t.Errorf("Error getting volume %d, expected *LinodeVolume, got error %v", volume.ID, err) }