Fix integration test - label affinity in parallel

Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
This commit is contained in:
Nishant Totla 2016-02-04 15:14:46 -08:00
parent a0fd82b909
commit c22d7fd78b
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ function teardown() {
swarm_manage
# Run 3 tests in parallel. One of them must fail.
run parallel docker -H "${SWARM_HOSTS[0]}" run --label test.label=true -e affinity:test.label!=true -d busybox:latest ::: sh sh sh
run parallel docker -H "${SWARM_HOSTS[0]}" run --label test.label=true -e affinity:test.label!=true -d busybox:latest ::: top top top
[ "$status" -ne 0 ]
[[ "${output}" == *'unable to find a node that satisfies test.label!=true'* ]]