mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Modify test to accept error from mkContainer
This commit is contained in:
parent
066873ebd2
commit
ced93bcabd
1 changed files with 4 additions and 1 deletions
|
@ -171,7 +171,10 @@ func TestContainerTop(t *testing.T) {
|
||||||
srv := &Server{runtime: runtime}
|
srv := &Server{runtime: runtime}
|
||||||
defer nuke(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)
|
defer runtime.Destroy(c)
|
||||||
if err := c.Start(hostConfig); err != nil {
|
if err := c.Start(hostConfig); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
|
Loading…
Reference in a new issue