Hack: use new 'kill' command in integration tests

This commit is contained in:
Solomon Hykes 2013-11-17 00:26:42 +00:00
parent fdb3de7b11
commit 2546a2c645
2 changed files with 2 additions and 2 deletions

View file

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

View file

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