mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-30 06:41:51 +00:00
test(dashboard): send loopback headers for WebSocket sidecar test
This commit is contained in:
parent
2e66eefbc3
commit
d9ec90585c
1 changed files with 4 additions and 1 deletions
|
|
@ -2291,7 +2291,10 @@ class TestPtyWebSocket:
|
|||
self.ws_module.app.state, "bound_port", 9119, raising=False
|
||||
)
|
||||
|
||||
with self.client.websocket_connect(self._url(channel="abc-123")) as conn:
|
||||
headers = {"host": "127.0.0.1:9119", "origin": "http://127.0.0.1:9119"}
|
||||
with self.client.websocket_connect(
|
||||
self._url(channel="abc-123"), headers=headers
|
||||
) as conn:
|
||||
try:
|
||||
conn.receive_bytes()
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue