File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments