diff --git a/test/integration/api.bats b/test/integration/api.bats index ec7b65551a..57201f577b 100644 --- a/test/integration/api.bats +++ b/test/integration/api.bats @@ -107,14 +107,22 @@ function teardown() { start_docker 2 swarm_manage + run docker_swarm images -q + [ "$status" -eq 0 ] + [ "${#lines[@]}" -eq 0 ] + run docker_swarm load -i $IMAGE_FILE [ "$status" -eq 0 ] - + + # check node0 run docker -H ${HOSTS[0]} images [ "${#lines[@]}" -eq 2 ] + [[ "${lines[1]}" == *"busybox"* ]] + # check node1 run docker -H ${HOSTS[1]} images [ "${#lines[@]}" -eq 2 ] + [[ "${lines[1]}" == *"busybox"* ]] rm -f $IMAGE_FILE }