Skip to content

Commit 0586102

Browse files
fix get_response for bytes response
1 parent 0371651 commit 0586102

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/tests/conftest.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ def print_log(self):
5757
print(output)
5858

5959
def get_response(self):
60-
return self.ws.recv()
61-
response = json.loads(self.ws.recv())
62-
return response
60+
response = self.ws.recv()
61+
if isinstance(response, bytes):
62+
return response
63+
else:
64+
return eval(response)
6365

6466
def compare_image(self, nb_messages, filename):
6567
for message in range(nb_messages):

0 commit comments

Comments
 (0)