diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-07-12 18:46:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 12:46:32 +0200 |
commit | 0bc54a0099c70dc05326a2b4a7aa5b0273b1bf1c (patch) | |
tree | ffe1e1e1ea418115292a980738391a9034c6b36d | |
parent | f649960f87a408124b5b0d6f55f3be7f5724a4e7 (diff) |
chore(cli/tools/test_runner): inline execute_module rresults (#11358)
-rw-r--r-- | cli/tools/test_runner.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cli/tools/test_runner.rs b/cli/tools/test_runner.rs index d1a0c6d65..432935aef 100644 --- a/cli/tools/test_runner.rs +++ b/cli/tools/test_runner.rs @@ -303,16 +303,14 @@ pub async fn run_test_file( None }; - let execute_result = worker.execute_module(&main_module).await; - execute_result?; + worker.execute_module(&main_module).await?; worker.execute_script( &located_script_name!(), "window.dispatchEvent(new Event('load'))", )?; - let execute_result = worker.execute_module(&test_module).await; - execute_result?; + worker.execute_module(&test_module).await?; worker .run_event_loop(maybe_coverage_collector.is_none()) |