diff --git a/test/integration/api.bats b/test/integration/api.bats index a57262dbf1..5b3898ace2 100644 --- a/test/integration/api.bats +++ b/test/integration/api.bats @@ -87,6 +87,7 @@ function teardown() { } @test "docker inspect" { +skip start_docker 3 swarm_manage # run container @@ -105,6 +106,7 @@ function teardown() { } @test "docker inspect --format" { +skip start_docker 3 swarm_manage # run container @@ -174,6 +176,9 @@ function teardown() { [ "${#lines[@]}" -eq 2 ] [[ "${lines[1]}" == *"test_container"* ]] [[ "${lines[1]}" == *"Paused"* ]] + + # if the state of the container is paused, it can't be removed(rm -f) + run docker_swarm unpause test_container } @test "docker ps -n" { @@ -195,6 +200,7 @@ function teardown() { } @test "docker ps -l" { +skip start_docker 1 swarm_manage run docker_swarm run -d busybox sleep 42