Ver Fonte

Modify test to accept error from mkContainer

Michael Crosby há 12 anos atrás
pai
commit
ced93bcabd
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      server_test.go

+ 4 - 1
server_test.go

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