mirror of
https://github.com/docker/docs.git
synced 2026-03-29 23:38:56 +07:00
Modify test to accept error from mkContainer
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