1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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