File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import socket
2+ import time
23
34class RequestProgram (object ):
45 def __init__ (self , port , robotIP ):
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ def test_send_command_no_data(monkeypatch):
5252 with pytest .raises (Exception ) as exc :
5353 rp .send_command ('request_program\n ' )
5454 assert (
55- 'Connectivity problem to with 127.0.0.1:1234: Did not receive any script lines' in str (exc .value )
55+ 'Connectivity problem with 127.0.0.1:1234: Did not receive any script lines' in str (exc .value )
5656 )
5757 assert dummy .closed
5858
@@ -62,7 +62,7 @@ def test_send_command_timeout(monkeypatch):
6262 rp = RequestProgram (1234 , '127.0.0.1' )
6363 with pytest .raises (Exception ) as exc :
6464 rp .send_command ('request_program\n ' )
65- assert 'Connectivity problem to with 127.0.0.1:1234: Connection timeout' in str (exc .value )
65+ assert 'Connectivity problem with 127.0.0.1:1234: Connection timeout' in str (exc .value )
6666 assert dummy .closed
6767
6868def test_send_command_connect_error (monkeypatch ):
You can’t perform that action at this time.
0 commit comments