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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/integration/models_swarm_test.py b/tests/integration/models_swarm_test.py
index 4f177f1..2808b45 100644
--- a/tests/integration/models_swarm_test.py
+++ b/tests/integration/models_swarm_test.py
@@ -15,7 +15,8 @@ class SwarmTest(unittest.TestCase):
def test_init_update_leave(self):
client = docker.from_env()
client.swarm.init(
- snapshot_interval=5000, listen_addr=helpers.swarm_listen_addr()
+ advertise_addr='eth0', snapshot_interval=5000,
+ listen_addr=helpers.swarm_listen_addr()
)
assert client.swarm.attrs['Spec']['Raft']['SnapshotInterval'] == 5000
client.swarm.update(snapshot_interval=10000)