Skip to content

Commit 58e3f30

Browse files
committed
Changed test host
1 parent 42b9baa commit 58e3f30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_pssh_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ def test_pssh_client_exec_command(self):
2929
listen_port = sock.getsockname()[1]
3030
server = start_server({ self.fake_cmd : self.fake_resp }, sock)
3131
gevent.sleep(1)
32-
client = ParallelSSHClient(['localhost'], port=listen_port)
32+
client = ParallelSSHClient(['127.0.0.1'], port=listen_port)
3333
gevent.sleep(2)
3434
cmd = client.exec_command(self.fake_cmd)[0]
3535
gevent.sleep(2)
3636
output = client.get_stdout(cmd)
37-
expected = {'localhost' : {'exit_code' : 0}}
37+
expected = {'127.0.0.1' : {'exit_code' : 0}}
3838
self.assertEqual(expected, output,
3939
msg = "Got unexpected command output - %s" % (output,))
4040
del client
@@ -46,7 +46,7 @@ def test_pssh_client_auth_failure(self):
4646
server = start_server({ self.fake_cmd : self.fake_resp },
4747
sock, fail_auth=True)
4848
gevent.sleep(1)
49-
client = ParallelSSHClient(['localhost'], port=listen_port)
49+
client = ParallelSSHClient(['127.0.0.1'], port=listen_port)
5050
gevent.sleep(2)
5151
cmd = client.exec_command(self.fake_cmd)[0]
5252
gevent.sleep(2)

0 commit comments

Comments
 (0)