diff --git a/test/integration/core/core-commands.bats b/test/integration/core/core-commands.bats index b79481685b..027be89aea 100644 --- a/test/integration/core/core-commands.bats +++ b/test/integration/core/core-commands.bats @@ -41,7 +41,7 @@ load ${BASE_TEST_DIR}/helpers.bash } @test "$DRIVER: docker commands with the socket should work" { - run machine ssh $NAME -- docker version + run machine ssh $NAME -- sudo docker version } @test "$DRIVER: stop" { diff --git a/test/integration/core/swarm-options.bats b/test/integration/core/swarm-options.bats index bae395a09b..a87f7f3c4c 100644 --- a/test/integration/core/swarm-options.bats +++ b/test/integration/core/swarm-options.bats @@ -4,7 +4,7 @@ load ${BASE_TEST_DIR}/helpers.bash export TOKEN=$(curl -sS -X POST "https://discovery-stage.hub.docker.com/v1/clusters") @test "create swarm master" { - run machine create -d $DRIVER --swarm --swarm-master --swarm-discovery "token://$TOKEN" --swarm-strategy binpack --swarm-opt heartbeat=5 queenbee + run machine create -d $DRIVER --swarm --swarm-master --swarm-discovery "token://$TOKEN" --swarm-strategy binpack --swarm-opt heartbeat=5s queenbee echo ${output} [[ "$status" -eq 0 ]] } @@ -23,5 +23,5 @@ export TOKEN=$(curl -sS -X POST "https://discovery-stage.hub.docker.com/v1/clust @test "ensure heartbeat" { heartbeat_arg=$(docker $(machine config queenbee) inspect -f '{{index .Args 9}}' swarm-agent-master) echo ${heartbeat_arg} - [[ "$heartbeat_arg" == "--heartbeat=5" ]] + [[ "$heartbeat_arg" == "--heartbeat=5s" ]] }