From 0a3d329dd82456cd894bda257e01cd50a62d6833 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Mon, 5 Feb 2024 12:21:29 -0700 Subject: Reland refactor(cli): use new sanitizer for resources (#22226) Originally in #22125 Reverted in #22153 because of #22148 Fixed in deno_core https://github.com/denoland/deno_core/pull/538 Test plan: 1. Check out: https://github.com/poolifier/poolifier-deno.git 2. `PATH=.../deno/target/release/:$PATH deno task test` 3. `ok | 13 passed (188 steps) | 0 failed (18s)` --- cli/tests/testdata/test/resource_sanitizer.out | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/testdata/test/resource_sanitizer.out b/cli/tests/testdata/test/resource_sanitizer.out index a0e916654..655dd2a17 100644 --- a/cli/tests/testdata/test/resource_sanitizer.out +++ b/cli/tests/testdata/test/resource_sanitizer.out @@ -6,8 +6,10 @@ leak ... FAILED ([WILDCARD]) leak => ./test/resource_sanitizer.ts:[WILDCARD] error: Leaking resources: - - The stdin pipe (rid 0) was opened before the test started, but was closed during the test. Do not close resources in a test that were not created during that test. - - A file (rid 3) was opened during the test, but not closed during the test. Close the file handle by calling `file.close()`. +[UNORDERED_START] + - The stdin pipe was opened before the test started, but was closed during the test. Do not close resources in a test that were not created during that test. + - A file was opened during the test, but not closed during the test. Close the file handle by calling `file.close()`. +[UNORDERED_END] FAILURES -- cgit v1.2.3