Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Mar 27, 2020
1 parent 88b48fd commit 91b18be
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,6 @@ import (
"github.com/scaleway/scaleway-sdk-go/scw"
)

//// waitAndDeleteServerAfterFunc wait for the server to be in a stable state and delete it
//func waitAndDeleteServerAfterFunc(ctx *core.AfterFuncCtx) error {
// _, err := baremetal.NewAPI(ctx.Client).WaitForServer(&baremetal.WaitForServerRequest{
// ServerID: ctx.CmdResult.(*baremetal.Server).ID,
// Zone: ctx.CmdResult.(*baremetal.Server).Zone,
// Timeout: serverActionTimeout,
// })
// if err != nil {
// return err
// }
// ctx.ExecuteCmd("scw baremetal server delete server-id=" + ctx.CmdResult.(*baremetal.Server).ID)
// return nil
//}

// All test below should succeed to create an instance.
func Test_CreateServer(t *testing.T) {
// Simple use cases
Expand Down

0 comments on commit 91b18be

Please sign in to comment.