Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/namespaces/instance/v1/custom_image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func Test_ImageDelete(t *testing.T) {
_, err := api.GetSnapshot(&instanceSDK.GetSnapshotRequest{
SnapshotID: snapshot.Snapshot.ID,
})
assert.IsType(t, &scw.ResourceNotFoundError{}, err)
assert.ErrorAs(t, err, new(*scw.ResourceNotFoundError))
},
),
AfterFunc: deleteServer("Server"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func Test_ServerTerminate(t *testing.T) {
_, err := api.GetIP(&instanceSDK.GetIPRequest{
IP: server.PublicIP.ID,
})
require.IsType(t, &scw.PermissionsDeniedError{}, err)
require.ErrorAs(t, err, new(*scw.PermissionsDeniedError))
},
),
DisableParallel: true,
Expand Down Expand Up @@ -131,14 +131,14 @@ func Test_ServerTerminate(t *testing.T) {
VolumeID: rootVolume.ID,
Zone: server.Zone,
})
require.IsType(t, &scw.ResourceNotFoundError{}, err)
require.ErrorAs(t, err, new(*scw.ResourceNotFoundError))

additionalVolume := testhelpers.MapTValue(t, server.Volumes, "1")
_, err = api.GetVolume(&blockSDK.GetVolumeRequest{
VolumeID: additionalVolume.ID,
Zone: server.Zone,
})
require.IsType(t, &scw.ResourceNotFoundError{}, err)
require.ErrorAs(t, err, new(*scw.ResourceNotFoundError))
},
),
DisableParallel: true,
Expand Down
22 changes: 11 additions & 11 deletions internal/namespaces/vpc/v2/custom_private_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,57 +71,57 @@ func privateNetworkGetBuilder(c *core.Command) *core.Command {
g.Go(func() (err error) {
instanceServers, err = listCustomInstanceServers(groupCtx, client, pn)

return
return err
})
g.Go(func() (err error) {
baremetalServers, err = listCustomBaremetalServers(groupCtx, client, pn)

return
return err
})
g.Go(func() (err error) {
k8sClusters, err = listCustomK8sClusters(groupCtx, client, pn)

return
return err
})
g.Go(func() (err error) {
lbs, err = listCustomLBs(groupCtx, client, pn)

return
return err
})
g.Go(func() (err error) {
rdbs, err = listCustomRdbs(groupCtx, client, pn)

return
return err
})
g.Go(func() (err error) {
redisClusters, err = listCustomRedisClusters(groupCtx, client, pn)

return
return err
})
g.Go(func() (err error) {
gateways, err = listCustomGateways(groupCtx, client, pn)

return
return err
})
g.Go(func() (err error) {
appleSiliconServers, err = listCustomAppleSiliconServers(groupCtx, client, pn)

return
return err
})
g.Go(func() (err error) {
mongoDBs, err = listCustomMongoDBs(groupCtx, client, pn)

return
return err
})
g.Go(func() (err error) {
ipamIPs, err = listCustomIPAMIPs(groupCtx, client, pn)

return
return err
})
g.Go(func() (err error) {
inferenceDeployments, err = listCustomInferenceDeployments(groupCtx, client, pn)

return
return err
})

if err = g.Wait(); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/tasks/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func Add[TaskArg any, TaskReturn any](
passedData, err = taskFunc(t, i.(TaskArg))
}

return
return passedData, err
},
})
}
Expand Down
Loading