summaryrefslogtreecommitdiff
path: root/tests/integration/models_swarm_test.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2017-08-31 12:22:59 -0700
committerJoffrey F <joffrey@docker.com>2017-08-31 12:22:59 -0700
commit43cd5336a5458432230f86d605b4f8a14121c6bf (patch)
tree2bd8a87bf3af18a43c24ba3d867e5090f33e034b /tests/integration/models_swarm_test.py
parent89195146adde47181156b0c204c72b790c69cf85 (diff)
downloaddocker-py-fix-advertise-addr.tar.gz
Use unambiguous advertise-addr when initializing a swarmfix-advertise-addr
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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/models_swarm_test.py b/tests/integration/models_swarm_test.py
index e45ff3c..ac18030 100644
--- a/tests/integration/models_swarm_test.py
+++ b/tests/integration/models_swarm_test.py
@@ -16,7 +16,7 @@ class SwarmTest(unittest.TestCase):
def test_init_update_leave(self):
client = docker.from_env(version=TEST_API_VERSION)
client.swarm.init(
- advertise_addr='eth0', snapshot_interval=5000,
+ advertise_addr='127.0.0.1', snapshot_interval=5000,
listen_addr=helpers.swarm_listen_addr()
)
assert client.swarm.attrs['Spec']['Raft']['SnapshotInterval'] == 5000