Skip to content

Commit 3cfd3b5

Browse files
committed
bug fixes
1 parent 2c1c2f1 commit 3cfd3b5

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

hololinked/client/zmq/consumed_interactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def read_reply(self, message_id: str, timeout: float | None = None) -> Any:
162162
"""
163163
if self.owner_inst._noblock_messages.get(message_id) != self:
164164
raise RuntimeError(f"Message ID {message_id} does not belong to this property.")
165-
response = self._sync_zmq_client.recv_response(message_id=message_id.encode())
165+
response = self._sync_zmq_client.recv_response(message_id=message_id)
166166
if not response:
167167
raise ReplyNotArrivedError(f"could not fetch reply within timeout for message id '{message_id}'")
168168
self._last_zmq_response = response

hololinked/core/zmq/brokers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ def send_request(
11031103
)
11041104
return request_message.id
11051105

1106-
def recv_response(self, message_id: bytes) -> ResponseMessage:
1106+
def recv_response(self, message_id: str) -> ResponseMessage:
11071107
"""
11081108
Receives response from server. Messages are identified by message id, and out of order messages are sent to
11091109
a cache which may be popped later. This method blocks until the expected message is received or `stop_polling()`

tests/test_99_global_config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def test_05_temp_data_folders():
9999
assert os.path.exists(folder)
100100
assert os.path.isdir(folder)
101101

102+
if os.path.exists(os.path.join(global_config.TEMP_DIR_SECRETS, "apikeys.json")):
103+
raise pytest.skip("apikeys.json already exists, skipping test to avoid overwriting existing secrets.")
102104
assert not os.path.exists(os.path.join(global_config.TEMP_DIR_SECRETS, "apikeys.json"))
103105
security = APIKeySecurity(name="test-api-key-security")
104106
security.create(print_value=False)

0 commit comments

Comments
 (0)