summaryrefslogtreecommitdiff
path: root/cli/tools/test_runner.rs
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-07-12 18:46:32 +0800
committerGitHub <noreply@github.com>2021-07-12 12:46:32 +0200
commit0bc54a0099c70dc05326a2b4a7aa5b0273b1bf1c (patch)
treeffe1e1e1ea418115292a980738391a9034c6b36d /cli/tools/test_runner.rs
parentf649960f87a408124b5b0d6f55f3be7f5724a4e7 (diff)
chore(cli/tools/test_runner): inline execute_module rresults (#11358)
Diffstat (limited to 'cli/tools/test_runner.rs')
-rw-r--r--cli/tools/test_runner.rs6
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())