1
0
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:
Michael Crosby
2013-08-07 19:07:39 +00:00
parent 0d08c8550d
commit a60f1182de

View File

@@ -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)