Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(ws_loop): add test for WebSocket reconnection logic

Steven Enamakel41f5cae9f997
diff --git a/crates/openhuman-core/src/platform/socket/ws_loop_tests.rs b/crates/openhuman-core/src/platform/socket/ws_loop_tests.rs
index 225020742b..00a7e95b1e 100644
--- a/crates/openhuman-core/src/platform/socket/ws_loop_tests.rs
+++ b/crates/openhuman-core/src/platform/socket/ws_loop_tests.rs
@@ -10,7 +10,7 @@ use crate::platform::socket::types::ConnectionStatus;
use futures_util::{SinkExt, StreamExt};
use std::sync::Arc;
use tokio::sync::mpsc;
-use tokio_tungstenite::tungstenite::{Error as WsError, Message as WsMessage};
+use tokio_tungstenite::tungstenite::Message as WsMessage;
fn make_shared() -> Arc<SharedState> {
Arc::new(SharedState {
webhook_router: RwLock::new(None),