mirror of
https://github.com/lexmount/moli.git
synced 2026-11-25 00:02:32 +00:00
test(fetch): adapt locked-body coverage to the shared probe harness
This commit is contained in:
@@ -47,6 +47,8 @@ mod fetch_preaborted_upload;
|
||||
mod font_queries;
|
||||
#[path = "web_apis/indexed_db_transaction.rs"]
|
||||
mod indexed_db_transaction;
|
||||
#[path = "web_apis/locked_body.rs"]
|
||||
mod locked_body;
|
||||
#[path = "web_apis/pipe_disturbed.rs"]
|
||||
mod pipe_disturbed;
|
||||
#[path = "web_apis/request_init.rs"]
|
||||
|
||||
@@ -12,7 +12,7 @@ async fn locked_bodies_reject_consumption_and_clone_without_becoming_disturbed()
|
||||
for target in ["window", "child", "worker"] {
|
||||
let observed = tokio::time::timeout(
|
||||
Duration::from_secs(20),
|
||||
super::pipe_disturbed::run_probe(&browser, &server, target, &source),
|
||||
super::event_dispatch::run_probe(&browser, &server, target, &source),
|
||||
)
|
||||
.await??;
|
||||
assert_eq!(observed, serde_json::json!({"errors": []}), "{target}");
|
||||
|
||||
Reference in New Issue
Block a user