Merge pull request #1761 from nishanttotla/label_affinity_parallel

Fix integration test - label affinity in parallel
This commit is contained in:
Alexandre Beslic 2016-02-04 15:35:19 -08:00
commit e83b619650
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ function teardown() {
swarm_manage swarm_manage
# Run 3 tests in parallel. One of them must fail. # 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 ] [ "$status" -ne 0 ]
[[ "${output}" == *'unable to find a node that satisfies test.label!=true'* ]] [[ "${output}" == *'unable to find a node that satisfies test.label!=true'* ]]