fix failing test to use kill instead of stop

TestCreateStartRestartStopStartKillRm was failing because stop has been
changed to not kill containers.

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
Upstream-commit: 4434dcee89f7d0d0239f6b492b24e940cdbafb21
Component: engine
This commit is contained in:
unclejack
2014-03-19 23:23:45 +02:00
parent 3dcf98a6e1
commit f7bce0a8cc
+2 -3
View File
@@ -416,7 +416,7 @@ func TestRestartKillWait(t *testing.T) {
})
}
func TestCreateStartRestartStopStartKillRm(t *testing.T) {
func TestCreateStartRestartKillStartKillRm(t *testing.T) {
eng := NewTestEngine(t)
srv := mkServerFromEngine(eng, t)
defer mkRuntimeFromEngine(eng, t).Nuke()
@@ -456,8 +456,7 @@ func TestCreateStartRestartStopStartKillRm(t *testing.T) {
t.Fatal(err)
}
job = eng.Job("stop", id)
job.SetenvInt("t", 15)
job = eng.Job("kill", id)
if err := job.Run(); err != nil {
t.Fatal(err)
}