diff --git a/test/integration/api/stats.bats b/test/integration/api/stats.bats index 3a7f4e599b..f0e1ac82af 100644 --- a/test/integration/api/stats.bats +++ b/test/integration/api/stats.bats @@ -18,9 +18,8 @@ function teardown() { # make sure container is up [ -n $(docker_swarm ps -q --filter=name=test_container --filter=status=running) ] - # storage the stats output in TEMP_FILE - # it will stop automatically when manager stop - docker_swarm stats test_container > $TEMP_FILE & + # save the stats output in TEMP_FILE + docker_swarm stats --no-stream test_container > $TEMP_FILE & # retry until TEMP_FILE is not empty retry 5 1 eval "[ -s $TEMP_FILE ]" diff --git a/test/integration/mesos/api/stats.bats b/test/integration/mesos/api/stats.bats index 49cc1d2405..c403be1a86 100644 --- a/test/integration/mesos/api/stats.bats +++ b/test/integration/mesos/api/stats.bats @@ -21,9 +21,8 @@ function teardown() { # make sure container is up [ -n $(docker_swarm ps -q --filter=name=test_container --filter=status=running) ] - # storage the stats output in TEMP_FILE - # it will stop automatically when manager stop - docker_swarm stats test_container > $TEMP_FILE & + # save the stats output in TEMP_FILE + docker_swarm stats --no-stream test_container > $TEMP_FILE & # retry until TEMP_FILE is not empty retry 5 1 eval "[ -s $TEMP_FILE ]"