Skip to content

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

test(storage): capture bridge entry before clearing signal

Steven Enamakel62c27c939fe8
diff --git a/crates/openhuman-core/src/storage/local_tests.rs b/crates/openhuman-core/src/storage/local_tests.rs
index d5d3a87686..ddd472c94d 100644
--- a/crates/openhuman-core/src/storage/local_tests.rs
+++ b/crates/openhuman-core/src/storage/local_tests.rs
@@ -96,11 +96,12 @@ async fn warm_sync_open_reuses_the_backend_without_entering_the_blocking_bridge(
super::arm_test_sync_backend_entry_signal(dir.path(), entered_tx);
let synchronous = backend_for(dir.path()).unwrap();
+ let bridge_entry = entered_rx.try_recv();
super::clear_test_sync_backend_entry_signal(dir.path());
assert!(Arc::ptr_eq(&warmed, &synchronous));
assert_eq!(
- entered_rx.try_recv(),
+ bridge_entry,
Err(std::sync::mpsc::TryRecvError::Empty),
"a warm backend lookup should not block the calling Tokio worker"
);