test(fetch): adapt locked-body coverage to the shared probe harness

This commit is contained in:
ldm0
2026-10-22 22:20:46 +08:00
parent bb1ef4867a
commit 04381628d2
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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"]
+1 -1
View File
@@ -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}");