Modify test to accept error from mkContainer

This commit is contained in:
Michael Crosby 2013-08-07 19:07:39 +00:00
parent 066873ebd2
commit ced93bcabd
1 changed files with 4 additions and 1 deletions

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)