Fixing integration tests

Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
This commit is contained in:
Nishant Totla 2016-04-06 23:35:59 -07:00
parent af5ce4bdb0
commit e29ff44caf
No known key found for this signature in database
GPG Key ID: 7EA5781C9B3D0C19
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ function teardown() {
# Try to schedule a container. It'd first select node-1 and fail
run docker_swarm run -m 10m busybox sh
[ "$status" -ne 0 ]
[[ "${lines[0]}" == *"Cannot connect to the docker engine endpoint"* ]]
[[ "${lines[0]}" == *"Cannot connect to the docker engine endpoint"* || "${lines[0]}" == *"Cannot connect to the Docker daemon"* ]]
# Try to run it again. It'd select node-0 and succeed
run docker_swarm run -m 10m busybox sh