Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust
Rust ai-agentsai-toolsbrowserbrowser-automationcloud-browserheadlessheadless-browserkitesurfplaywrightpuppeteerrustservoweb-crawlerweb-crawlingweb-scraperweb-scraping
test(runtime): release replacement gate before asserting reservation
ldm0f043ba029ca7
diff --git a/moli-renderer-v8/src/runtime/document_replacement/tests.rs b/moli-renderer-v8/src/runtime/document_replacement/tests.rsindex cb929d4cc..660ae1a26 100644--- a/moli-renderer-v8/src/runtime/document_replacement/tests.rs+++ b/moli-renderer-v8/src/runtime/document_replacement/tests.rs@@ -285,10 +285,10 @@ async fn dropping_inflight_prepare_retires_queued_document_and_scope() {runtime.install_owner_command_dispatch_gate_for_testing();let mut pending = Box::pin(prepare(&runtime, replacement_target(&page, &pause)));assert!(futures_util::poll!(&mut pending).is_pending());- reservation_entered- .recv_timeout(std::time::Duration::from_secs(30))- .unwrap();- reservation_release.send(()).unwrap();+ let reservation_reached = reservation_entered.recv_timeout(std::time::Duration::from_secs(30));+ let reservation_released = reservation_release.send(());+ reservation_reached.unwrap();+ reservation_released.unwrap();// Finish reservation first, then hold the actual prepare command. The// reservation-cancellation test below covers cancellation before this point.owner_barrier(&runtime).await;