Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-akamai committed Mar 4, 2024
1 parent 343ad14 commit 8d1a98d
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 13 deletions.
3 changes: 1 addition & 2 deletions test/integration/instance_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
}
Expand Down
5 changes: 0 additions & 5 deletions test/integration/instances_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand All @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down Expand Up @@ -435,7 +431,6 @@ func TestInstance_Clone(t *testing.T) {
*clonedInstance.Created,
240,
)

if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 0 additions & 2 deletions test/integration/network_ranges_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ func TestIPv6Range_Share(t *testing.T) {
strings.TrimSuffix(ipRange.Range, "/64"),
},
})

if err != nil {
t.Fatal(err)
}
Expand All @@ -98,7 +97,6 @@ func TestIPv6Range_Share(t *testing.T) {
strings.TrimSuffix(ipRange.Range, "/64"),
},
})

if err != nil {
t.Fatal(err)
}
Expand Down
1 change: 0 additions & 1 deletion test/integration/nodebalancers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 0 additions & 1 deletion test/integration/object_storage_keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 0 additions & 1 deletion test/integration/profile_sshkeys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 0 additions & 1 deletion test/integration/volumes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 8d1a98d

Please sign in to comment.