From 11f0ccf8052065e37f92d8ba43e9624fcd3b9814 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Fri, 15 Sep 2023 16:46:48 +0100 Subject: fix(test): share fail fast tracker between threads (#20515) --- cli/tests/integration/test_tests.rs | 2 +- cli/tests/testdata/test/fail_fast.out | 1 + cli/tests/testdata/test/fail_fast_other.ts | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 cli/tests/testdata/test/fail_fast_other.ts (limited to 'cli/tests') diff --git a/cli/tests/integration/test_tests.rs b/cli/tests/integration/test_tests.rs index b4bf842ff..bcf3e4ef7 100644 --- a/cli/tests/integration/test_tests.rs +++ b/cli/tests/integration/test_tests.rs @@ -182,7 +182,7 @@ itest!(quiet { }); itest!(fail_fast { - args: "test --fail-fast test/fail_fast.ts", + args: "test --fail-fast test/fail_fast.ts test/fail_fast_other.ts", exit_code: 1, output: "test/fail_fast.out", }); diff --git a/cli/tests/testdata/test/fail_fast.out b/cli/tests/testdata/test/fail_fast.out index c0cf2df01..606d5b345 100644 --- a/cli/tests/testdata/test/fail_fast.out +++ b/cli/tests/testdata/test/fail_fast.out @@ -1,4 +1,5 @@ Check [WILDCARD]/test/fail_fast.ts +Check [WILDCARD]/test/fail_fast_other.ts running 10 tests from ./test/fail_fast.ts test 1 ... FAILED ([WILDCARD]) diff --git a/cli/tests/testdata/test/fail_fast_other.ts b/cli/tests/testdata/test/fail_fast_other.ts new file mode 100644 index 000000000..02aa878cf --- /dev/null +++ b/cli/tests/testdata/test/fail_fast_other.ts @@ -0,0 +1,3 @@ +Deno.test("test 11", () => { + throw new Error(); +}); -- cgit v1.2.3