Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Mar 20, 2020
1 parent 3f61f49 commit 12f0510
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions internal/namespaces/baremetal/v1alpha1/custom_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ func serverWaitCommand() *core.Command {

// serverStartBuilder overrides the baremetalServerStart command
func serverStartBuilder(c *core.Command) *core.Command {

c.WaitFunc = func(ctx context.Context, argsI, respI interface{}) (interface{}, error) {
return baremetal.NewAPI(core.ExtractClient(ctx)).WaitForServer(&baremetal.WaitForServerRequest{
Zone: argsI.(*baremetal.StartServerRequest).Zone,
Expand All @@ -75,7 +74,6 @@ func serverStartBuilder(c *core.Command) *core.Command {

// serverStopBuilder overrides the baremetalServerStop command
func serverStopBuilder(c *core.Command) *core.Command {

c.WaitFunc = func(ctx context.Context, argsI, respI interface{}) (interface{}, error) {
return baremetal.NewAPI(core.ExtractClient(ctx)).WaitForServer(&baremetal.WaitForServerRequest{
Zone: argsI.(*baremetal.StopServerRequest).Zone,
Expand All @@ -89,7 +87,6 @@ func serverStopBuilder(c *core.Command) *core.Command {

// serverRebootBuilder overrides the baremetalServerReboot command
func serverRebootBuilder(c *core.Command) *core.Command {

c.WaitFunc = func(ctx context.Context, argsI, respI interface{}) (interface{}, error) {
return baremetal.NewAPI(core.ExtractClient(ctx)).WaitForServer(&baremetal.WaitForServerRequest{
Zone: argsI.(*baremetal.RebootServerRequest).Zone,
Expand Down
3 changes: 0 additions & 3 deletions internal/namespaces/baremetal/v1alpha1/custom_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ func Test_StartServerErrors(t *testing.T) {
AfterFunc: waitAndDeleteServerAfterFunc,
DefaultZone: scw.ZoneFrPar2,
}))

}

func Test_StopServerErrors(t *testing.T) {
Expand All @@ -32,7 +31,6 @@ func Test_StopServerErrors(t *testing.T) {
AfterFunc: waitAndDeleteServerAfterFunc,
DefaultZone: scw.ZoneFrPar2,
}))

}

func Test_RebootServerErrors(t *testing.T) {
Expand All @@ -46,5 +44,4 @@ func Test_RebootServerErrors(t *testing.T) {
AfterFunc: waitAndDeleteServerAfterFunc,
DefaultZone: scw.ZoneFrPar2,
}))

}

0 comments on commit 12f0510

Please sign in to comment.