mirror of
https://github.com/docker/cli.git
synced 2026-01-16 20:22:36 +03:00
Modify test to accept error from mkContainer
Upstream-commit: ced93bcabdc0dd0f6dcfa52174be552adf6c5bd1 Component: engine
This commit is contained in:
@@ -171,7 +171,10 @@ func TestContainerTop(t *testing.T) {
|
||||
srv := &Server{runtime: runtime}
|
||||
defer nuke(runtime)
|
||||
|
||||
c, hostConfig := mkContainer(runtime, []string{"_", "/bin/sh", "-c", "sleep 2"}, t)
|
||||
c, hostConfig, err := mkContainer(runtime, []string{"_", "/bin/sh", "-c", "sleep 2"}, t)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer runtime.Destroy(c)
|
||||
if err := c.Start(hostConfig); err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user