Merge pull request #12248 from duglin/RemoveJobKill

Remove Job from `docker kill`
This commit is contained in:
Michael Crosby
2015-04-10 10:52:18 -07:00
5 changed files with 29 additions and 41 deletions
+2 -2
View File
@@ -132,8 +132,8 @@ func TestRestartKillWait(t *testing.T) {
if err := job.Run(); err != nil {
t.Fatal(err)
}
job = eng.Job("kill", id)
if err := job.Run(); err != nil {
if err := runtime.ContainerKill(id, 0); err != nil {
t.Fatal(err)
}
+1 -1
View File
@@ -105,7 +105,7 @@ func containerWaitTimeout(eng *engine.Engine, id string, t Fataler) error {
}
func containerKill(eng *engine.Engine, id string, t Fataler) {
if err := eng.Job("kill", id).Run(); err != nil {
if err := getDaemon(eng).ContainerKill(id, 0); err != nil {
t.Fatal(err)
}
}