check the container started successfully after reschedule

Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Victor Vieux 2016-01-28 11:46:31 -08:00
parent aa028f4d09
commit 2cc980e4ab
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,9 @@ function teardown() {
run docker_swarm inspect c3
[ "$status" -eq 0 ]
[[ "${output}" == *'"Name": "node-1"'* ]]
run docker_swarm ps -q
[ "${#lines[@]}" -eq 2 ]
}
@test "rescheduling with constraints" {