1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/cli/tests
Bartek Iwańczuk e2a0c3f0dc
fix(inspector): allow to poll session with reentry (#16863)
This commit completely rewrites inspector session polling.

Until now, there was a single function responsible for polling inspector
sessions which could have been called when polling the "JsRuntime"
as well as from internal inspector functions. There are some cases
where it's required to have reentrant polling of sessions (eg. when 
"debugger" statement is run) which should be blocking until inspector
sends appropriate message to continue execution. This was not possible
before, because polling of sessions didn't have reentry ability.

As a consequence, session polling was split into two separate functions:
a) one to be used when polling from async context (on each tick of event
loop in "JsRuntime")
b) one to be used when polling synchronously and potentially blocking
(used by various inspector methods).

There are further cleanups and simplifications to be made in inspector
code, but this rewrite solves the problem at hand (being able to
evaluate
"debugger" JS statement and continue inspector functionality).

Co-authored-by: Bert Belder <bertbelder@gmail.com>
2022-12-02 23:17:02 +01:00
..
integration tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
testdata chore: rewrite tests and utils to use Deno.Command API (#16895) 2022-12-02 14:43:17 +01:00
unit chore: fix flaky netListenUnrefAndRef (#16892) 2022-12-02 12:41:52 -05:00
bench_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
bundle_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
cache_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
cert_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
check_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
compile_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
coverage_tests.rs fix(coverage): Error if the emit cache is invalid (#16850) 2022-11-29 18:43:54 +01:00
doc_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
eval_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
flags_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
fmt_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
info_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
init_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
inspector_tests.rs fix(inspector): allow to poll session with reentry (#16863) 2022-12-02 23:17:02 +01:00
install_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
js_unit_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
lint_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
lsp_tests.rs fix(lsp): analyze fs dependencies of dependencies to find npm package requirements (#16866) 2022-11-30 00:32:18 +00:00
npm_tests.rs chore(npm): fix types tests (#16882) 2022-12-01 12:26:33 -05:00
repl_tests.rs chore(windows): fix flaky pty_complete_imports (#16905) 2022-12-02 14:59:04 -05:00
run_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
task_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
test_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
upgrade_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
vendor_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
watcher_tests.rs Revert "fix(ext/flash): graceful server startup/shutdown with unsettl… (#16839) 2022-11-27 04:50:14 +01:00
worker_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00