From 8aa529f1b8934fc8aefdfd721e363b71a7c9c269 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Wed, 21 Feb 2024 12:10:51 -0700 Subject: chore(cli): fix part of flaky test (#22515) --- tests/testdata/node/test_no_sanitizers/test.js | 9 +++++---- tests/testdata/node/test_no_sanitizers/test.out | 6 ++++-- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'tests/testdata/node') diff --git a/tests/testdata/node/test_no_sanitizers/test.js b/tests/testdata/node/test_no_sanitizers/test.js index d2ca8a6c7..edd558710 100644 --- a/tests/testdata/node/test_no_sanitizers/test.js +++ b/tests/testdata/node/test_no_sanitizers/test.js @@ -22,7 +22,8 @@ test("should not complain about resource and op sanitizers", async (t) => { ); }); -test("should allow exit", () => { - // no exit sanitizers - Deno.exit(123); -}); +// TODO(mmastrac): This works, but we don't reliably flush stdout/stderr here, making this test flake +// test("should allow exit", () => { +// // no exit sanitizers +// Deno.exit(123); +// }); diff --git a/tests/testdata/node/test_no_sanitizers/test.out b/tests/testdata/node/test_no_sanitizers/test.out index f52bed3ab..5bd41aadf 100644 --- a/tests/testdata/node/test_no_sanitizers/test.out +++ b/tests/testdata/node/test_no_sanitizers/test.out @@ -1,5 +1,7 @@ -running 2 tests from ./node/test_no_sanitizers/test.js +running 1 test from ./node/test_no_sanitizers/test.js should not complain about resource and op sanitizers ... nested test ... ok ([WILDCARD]) should not complain about resource and op sanitizers ... ok ([WILDCARD]) -should allow exit ... \ No newline at end of file + +ok | 1 passed (1 step) | 0 failed ([WILDCARD]) + -- cgit v1.2.3