From 67a4231bb62b7839f39bafc9e2e656f43093619b Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Fri, 16 Feb 2024 14:22:12 -0700 Subject: 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 --- tests/unit/ops_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unit') 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 -- cgit v1.2.3