mirror of https://github.com/docker/docs.git
Merge pull request #1761 from nishanttotla/label_affinity_parallel
Fix integration test - label affinity in parallel
This commit is contained in:
commit
e83b619650
|
@ -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'* ]]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue