From cb60e836157dd9eb3b90a2937da1d889cd20a121 Mon Sep 17 00:00:00 2001 From: Xian Chaobo Date: Fri, 17 Apr 2015 10:22:03 +0800 Subject: [PATCH] format fix Signed-off-by: Xian Chaobo --- test/integration/api.bats | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/integration/api.bats b/test/integration/api.bats index 8953bf5214..8ecdd7823e 100644 --- a/test/integration/api.bats +++ b/test/integration/api.bats @@ -48,7 +48,7 @@ function teardown() { # create run docker_swarm create --name test_container busybox sleep 1000 - [ "$status" -eq 0 ] + [ "$status" -eq 0 ] # verify, created container exists run docker_swarm ps -l @@ -123,7 +123,7 @@ function teardown() { # verify run docker_swarm ps -l [ "${#lines[@]}" -eq 2 ] - [[ "${lines[1]}" == *"test_container"* ]] + [[ "${lines[1]}" == *"test_container"* ]] [[ "${lines[1]}" == *"Exited"* ]] } @@ -227,7 +227,7 @@ function teardown() { # verify run docker_swarm ps -l [ "${#lines[@]}" -eq 2 ] - [[ "${lines[1]}" == *"test_container"* ]] + [[ "${lines[1]}" == *"test_container"* ]] [[ "${lines[1]}" == *"Up"* ]] } @@ -274,7 +274,7 @@ function teardown() { [ "$status" -eq 0 ] run docker_swarm ps -l [ "${#lines[@]}" -eq 2 ] - [[ "${lines[1]}" == *"test_container"* ]] + [[ "${lines[1]}" == *"test_container"* ]] [[ "${lines[1]}" == *"Up"* ]] } @@ -291,10 +291,10 @@ function teardown() { [ "$status" -eq 0 ] # make sure container is up before stop - run docker_swarm ps -l - [ "${#lines[@]}" -eq 2 ] - [[ "${lines[1]}" == *"test_container"* ]] - [[ "${lines[1]}" == *"Up"* ]] + run docker_swarm ps -l + [ "${#lines[@]}" -eq 2 ] + [[ "${lines[1]}" == *"test_container"* ]] + [[ "${lines[1]}" == *"Up"* ]] # stop run docker_swarm stop test_container @@ -303,7 +303,7 @@ function teardown() { # verify run docker_swarm ps -l [ "${#lines[@]}" -eq 2 ] - [[ "${lines[1]}" == *"test_container"* ]] + [[ "${lines[1]}" == *"test_container"* ]] [[ "${lines[1]}" == *"Exited"* ]] }