1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

chore(cli/tools/test_runner): inline execute_module rresults (#11358)

This commit is contained in:
Casper Beyer 2021-07-12 18:46:32 +08:00 committed by GitHub
parent f649960f87
commit 0bc54a0099
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -303,16 +303,14 @@ pub async fn run_test_file(
None None
}; };
let execute_result = worker.execute_module(&main_module).await; worker.execute_module(&main_module).await?;
execute_result?;
worker.execute_script( worker.execute_script(
&located_script_name!(), &located_script_name!(),
"window.dispatchEvent(new Event('load'))", "window.dispatchEvent(new Event('load'))",
)?; )?;
let execute_result = worker.execute_module(&test_module).await; worker.execute_module(&test_module).await?;
execute_result?;
worker worker
.run_event_loop(maybe_coverage_collector.is_none()) .run_event_loop(maybe_coverage_collector.is_none())