Skip to content

Commit 61149d2

Browse files
committed
Small adjustment to make it work
1 parent 05534e0 commit 61149d2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

external-control-backend/src/request_program.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import socket
2+
import time
23

34
class RequestProgram(object):
45
def __init__(self, port, robotIP):

external-control-backend/tests/test_request_program.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

6868
def test_send_command_connect_error(monkeypatch):

0 commit comments

Comments
 (0)