Skip to content

Commit f768b64

Browse files
author
Nicolas Legrand
committed
Fix test recording (2)
1 parent 6c92a81 commit f768b64

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

systole/tests/test_recording.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,10 @@ def simulateEXG():
6969
server.listen(0)
7070
conn, addr = server.accept()
7171
with conn:
72-
while True:
73-
conn.send(data1)
74-
conn.send(data2)
75-
conn.send(data3)
76-
conn.send(data4)
72+
conn.send(data1)
73+
conn.send(data2)
74+
conn.send(data3)
75+
conn.send(data4)
7776
server.close()
7877

7978
# Start fake server in background thread
@@ -88,7 +87,7 @@ def simulateEXG():
8887
'EGG1', 'EGG2', 'EGG3', 'EGG4', 'EGG5', 'EGG6', 'RESP', 'PLETH']
8988
assert all([data[k].shape[0] == 20 for k in list(data.keys())])
9089

91-
# Ensure server thread ends
90+
# Ensure server ends
9291
server_thread.join()
9392

9493

0 commit comments

Comments
 (0)