summaryrefslogtreecommitdiff
path: root/tests/integration/models_swarm_test.py
diff options
context:
space:
mode:
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