From 76c8c18bc9ad5c959a731c1a6a4ffca33faac6f3 Mon Sep 17 00:00:00 2001 From: Xian Chaobo Date: Tue, 21 Apr 2015 16:17:32 +0800 Subject: [PATCH] pause fix Signed-off-by: Xian Chaobo --- test/integration/api.bats | 6 ++++++ 1 file changed, 6 insertions(+) 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