Browse Source

Hack: use new 'kill' command in integration tests

Solomon Hykes 11 years ago
parent
commit
2546a2c645
2 changed files with 2 additions and 2 deletions
  1. 1 1
      integration/server_test.go
  2. 1 1
      integration/utils_test.go

+ 1 - 1
integration/server_test.go

@@ -199,7 +199,7 @@ func TestCreateStartRestartStopStartKillRm(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	if err := srv.ContainerKill(id, 0); err != nil {
+	if err := eng.Job("kill", id).Run(); err != nil {
 		t.Fatal(err)
 	}
 

+ 1 - 1
integration/utils_test.go

@@ -105,7 +105,7 @@ func containerWaitTimeout(eng *engine.Engine, id string, t utils.Fataler) error
 }
 
 func containerKill(eng *engine.Engine, id string, t utils.Fataler) {
-	if err := getContainer(eng, id, t).Kill(); err != nil {
+	if err := eng.Job("kill", id).Run(); err != nil {
 		t.Fatal(err)
 	}
 }