Merge pull request #3175 from vieux/engine-job-stop

Move stop to job
This commit is contained in:
Guillaume J. Charmes
2013-12-13 14:15:58 -08:00
5 changed files with 32 additions and 20 deletions
+6 -3
View File
@@ -129,8 +129,9 @@ func TestCreateRmVolumes(t *testing.T) {
t.Fatal(err)
}
err = srv.ContainerStop(id, 1)
if err != nil {
job = eng.Job("stop", id)
job.SetenvInt("t", 1)
if err := job.Run(); err != nil {
t.Fatal(err)
}
@@ -188,7 +189,9 @@ func TestCreateStartRestartStopStartKillRm(t *testing.T) {
t.Fatal(err)
}
if err := srv.ContainerStop(id, 15); err != nil {
job = eng.Job("stop", id)
job.SetenvInt("t", 15)
if err := job.Run(); err != nil {
t.Fatal(err)
}