summaryrefslogtreecommitdiff
path: root/tests/integration/models_swarm_test.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2016-12-08 13:08:05 -0800
committerJoffrey F <joffrey@docker.com>2016-12-08 14:50:05 -0800
commit48c5cd82fc91b874fb1502149a58f5f72a026a91 (patch)
treebd7f90ff62c167d08cbfc9eb337274a1b1997524 /tests/integration/models_swarm_test.py
parent3fb48d111bd3c4e1a6a490fe73f76e6021847a5d (diff)
downloaddocker-py-jenkinsfile.tar.gz
Prevent Swarm address conflictsjenkinsfile
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'tests/integration/models_swarm_test.py')
-rw-r--r--tests/integration/models_swarm_test.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/integration/models_swarm_test.py b/tests/integration/models_swarm_test.py
index 72bf9e5..4f177f1 100644
--- a/tests/integration/models_swarm_test.py
+++ b/tests/integration/models_swarm_test.py
@@ -1,5 +1,7 @@
import unittest
+
import docker
+
from .. import helpers
@@ -12,7 +14,9 @@ class SwarmTest(unittest.TestCase):
def test_init_update_leave(self):
client = docker.from_env()
- client.swarm.init(snapshot_interval=5000)
+ client.swarm.init(
+ snapshot_interval=5000, listen_addr=helpers.swarm_listen_addr()
+ )
assert client.swarm.attrs['Spec']['Raft']['SnapshotInterval'] == 5000
client.swarm.update(snapshot_interval=10000)
assert client.swarm.attrs['Spec']['Raft']['SnapshotInterval'] == 10000