summaryrefslogtreecommitdiff
path: root/cli/tools/test_runner.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/test_runner.rs')
-rw-r--r--cli/tools/test_runner.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/tools/test_runner.rs b/cli/tools/test_runner.rs
index 7d1eae9ee..24bea3ff8 100644
--- a/cli/tools/test_runner.rs
+++ b/cli/tools/test_runner.rs
@@ -307,7 +307,9 @@ pub async fn run_test_file(
let execute_result = worker.execute_module(&test_module).await;
execute_result?;
- worker.run_event_loop().await?;
+ worker
+ .run_event_loop(maybe_coverage_collector.is_none())
+ .await?;
worker.execute("window.dispatchEvent(new Event('unload'))")?;
if let Some(coverage_collector) = maybe_coverage_collector.as_mut() {