diff options
author | Matt Mastracci <matthew@mastracci.com> | 2024-02-16 14:22:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 21:22:12 +0000 |
commit | 67a4231bb62b7839f39bafc9e2e656f43093619b (patch) | |
tree | 428c3db10857a5c1785af56ea8997dff8b2adb0b /tests/unit/ops_test.ts | |
parent | c92717a1a43d31951cd8a1161afb766ef339aa21 (diff) |
refactor(cli): move op sanitizer to Rust (#22413)
The format of the sanitizers will change a little bit:
- If multiple async ops leak and traces are on, we repeat the async op
header once per stack trace.
- All leaks are aggregated under a "Leaks detected:" banner as the new
timers are eventually going to be added, and these are neither ops nor
resources.
- `1 async op` is now `An async op`
- If ops and resources leak, we show both (rather than op leaks masking
resources)
Follow-on to https://github.com/denoland/deno/pull/22226
Diffstat (limited to 'tests/unit/ops_test.ts')
-rw-r--r-- | tests/unit/ops_test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/ops_test.ts b/tests/unit/ops_test.ts index 4a0daa0a5..4ba7c5ce3 100644 --- a/tests/unit/ops_test.ts +++ b/tests/unit/ops_test.ts @@ -1,6 +1,6 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -const EXPECTED_OP_COUNT = 15; +const EXPECTED_OP_COUNT = 11; Deno.test(function checkExposedOps() { // @ts-ignore TS doesn't allow to index with symbol |