From 2d7821b824a77930812847c87ea385cf37198c3f Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 22 Mar 2018 13:25:56 +0545 Subject: [PATCH] tests: test_stream_name: fix non-localhost Docker --- tests/ssh_test.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/ssh_test.py b/tests/ssh_test.py index b8114139..cf868ad3 100644 --- a/tests/ssh_test.py +++ b/tests/ssh_test.py @@ -28,8 +28,11 @@ class SshTest(testlib.DockerMixin, unittest2.TestCase): username='has-sudo', password='y', ) - self.assertEquals('ssh.localhost:%s' % (self.dockerized_ssh.port,), - context.name) + name = 'ssh.%s:%s' % ( + self.dockerized_ssh.get_host(), + self.dockerized_ssh.port, + ) + self.assertEquals(name, context.name) def test_via_stream_name(self): context = self.docker_ssh(