Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

test(worker): bound slow XHR fixture shutdown

lanyue-llk0da1cdc82da1
diff --git a/moli-renderer-v8/src/worker/thread/tests/network/file_and_xhr.rs b/moli-renderer-v8/src/worker/thread/tests/network/file_and_xhr.rs
index 46a2b5a9b..abc35a594 100644
--- a/moli-renderer-v8/src/worker/thread/tests/network/file_and_xhr.rs
+++ b/moli-renderer-v8/src/worker/thread/tests/network/file_and_xhr.rs
@@ -608,8 +608,9 @@ async fn worker_sync_xhr_timeout_cancels_fetch_and_throws_without_progress_event
r#"{{"error":{{"name":"TimeoutError","message":"Failed to execute 'send' on 'XMLHttpRequest': Failed to load '{base_url}/worker/slow.txt'.","isDomException":true}},"readyState":4,"status":0,"responseText":"","events":["readystatechange:1"]}}"#
)
);
- server
+ timeout(TIMEOUT, server)
.await
+ .expect("slow sync worker xhr server should finish within test timeout")
.expect("slow sync worker xhr server should finish");
}