Skip to content

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

fix(ws_loop_reconnect_tests): correct test expectations for reconnect behavior

Steven Enamakel5cb8bae28cf9
diff --git a/crates/openhuman-core/src/platform/socket/ws_loop_reconnect_tests.rs b/crates/openhuman-core/src/platform/socket/ws_loop_reconnect_tests.rs
index bde37669c4..dc12f4ffae 100644
--- a/crates/openhuman-core/src/platform/socket/ws_loop_reconnect_tests.rs
+++ b/crates/openhuman-core/src/platform/socket/ws_loop_reconnect_tests.rs
@@ -2,7 +2,9 @@ use super::*;
use crate::platform::socket::token_provider::TokenProvider;
use std::sync::Arc;
+use futures_util::StreamExt;
use tokio::sync::mpsc;
+use tokio::sync::watch;
use tokio_tungstenite::tungstenite::Error as WsError;
use crate::platform::socket::types::ConnectionStatus;
/// Driver-level proof: when the configured URL responds with a 301 pointing