From c9edb466ddb28f600d4d429f32b54f3d788d8aa1 Mon Sep 17 00:00:00 2001 From: Jean-Laurent de Morlhon Date: Fri, 8 Jan 2016 12:15:10 +0100 Subject: [PATCH] Hardening flaky swarm integration test Signed-off-by: Jean-Laurent de Morlhon --- test/integration/core/swarm-options.bats | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/integration/core/swarm-options.bats b/test/integration/core/swarm-options.bats index a36cdbb0a7..4f1e04bd72 100644 --- a/test/integration/core/swarm-options.bats +++ b/test/integration/core/swarm-options.bats @@ -29,14 +29,13 @@ export TOKEN=$(curl -sS -X POST "https://discovery.hub.docker.com/v1/clusters") @test "should not show as swarm active if normal active" { eval $(machine env queenbee) - run machine ls - echo ${output} + run machine ls --filter name=queenbee [[ ${lines[1]} != *"* (swarm)"* ]] } @test "should show as swarm active" { eval $(machine env --swarm queenbee) - run machine ls + run machine ls --filter name=queenbee echo ${output} [[ ${lines[1]} == *"* (swarm)"* ]] }