Hack: use new 'kill' command in integration tests

Upstream-commit: 2546a2c645c59d094bc2c09dc9eb0d8eb5c36786
Component: engine
This commit is contained in:
Solomon Hykes
2013-11-17 00:26:42 +00:00
parent 18f68039b6
commit 1b6ebfe317
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)
}
}