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
4 changes: 0 additions & 4 deletions validation/pidfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"os"
"path/filepath"
"strconv"
"time"

tap "github.com/mndrix/tap-go"
"github.com/opencontainers/runtime-tools/validation/util"
Expand Down Expand Up @@ -47,9 +46,6 @@ func main() {
}
return nil
},
PreDelete: func(r *util.Runtime) error {
return util.WaitingForStatus(*r, util.LifecycleStatusCreated, time.Second*10, time.Second*1)
},
}

g := util.GetDefaultGenerator()
Expand Down
5 changes: 0 additions & 5 deletions validation/util/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,6 @@ func RuntimeInsideValidate(g *generate.Generator, f PreFunc) (err error) {
return err
}

// FIXME: why do we need this? Without a sleep here, I get:
// failed to start the container
// container "..." does not exist
time.Sleep(1 * time.Second)

err = r.Start()
if err != nil {
os.Stderr.WriteString("failed to start the container\n")
Expand Down