diff options
author | Jesper van den Ende <jespertheend@users.noreply.github.com> | 2021-12-16 00:38:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-16 00:38:27 +0100 |
commit | 0f53b82cd262e972f392f81b572351b2427389ab (patch) | |
tree | e9e58b13589bc3b316d7c1b6467de705f45f907d /runtime/worker.rs | |
parent | f0e1a6b84c282a37a5cfd278fc145ba645ee9073 (diff) |
fix(test): wait for inspector session in side modules (#13065)
This commit fixes inspector integration with "deno test" subcommand
by waiting for inspector sessions to connect if "--inspect-brk" flag
is passed.
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r-- | runtime/worker.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs index 545128dff..087185729 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -229,6 +229,7 @@ impl MainWorker { module_specifier: &ModuleSpecifier, ) -> Result<(), AnyError> { let id = self.preload_module(module_specifier, false).await?; + self.wait_for_inspector_session(); self.evaluate_module(id).await } |