diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-11-10 06:34:41 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-10 14:34:41 +0000 |
commit | 9f2e56ba96b847d6275ac26656d9d522fca252f7 (patch) | |
tree | 1c953d4c6df97cd33615c0ab80a02e65ca8ef4d9 /cli/tests | |
parent | 8ecb649182966bd77a7ddac9797496291cbf9521 (diff) |
chore: use internal namespace in 40_testing.js (#21141)
Towards #21136
- [x] assign serializePermissions, setTimeout and setExitHandler APIs to
internal namespace
- [x] remove usage of assert
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/testdata/bench/exit_sanitizer.out | 6 | ||||
-rw-r--r-- | cli/tests/testdata/test/exit_sanitizer.out | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/cli/tests/testdata/bench/exit_sanitizer.out b/cli/tests/testdata/bench/exit_sanitizer.out index 501b9ce8a..9f15d3f26 100644 --- a/cli/tests/testdata/bench/exit_sanitizer.out +++ b/cli/tests/testdata/bench/exit_sanitizer.out @@ -5,10 +5,10 @@ runtime: deno [WILDCARD] ([WILDCARD]) [WILDCARD]/bench/exit_sanitizer.ts benchmark time (avg) iter/s (min … max) p75 p99 p995 --------------------------------------------------------------- ----------------------------- -exit(0) error: AssertionError: Bench attempted to exit with exit code: 0 +exit(0) error: Error: Bench attempted to exit with exit code: 0 [WILDCARD] -exit(1) error: AssertionError: Bench attempted to exit with exit code: 1 +exit(1) error: Error: Bench attempted to exit with exit code: 1 [WILDCARD] -exit(2) error: AssertionError: Bench attempted to exit with exit code: 2 +exit(2) error: Error: Bench attempted to exit with exit code: 2 [WILDCARD] error: Bench failed diff --git a/cli/tests/testdata/test/exit_sanitizer.out b/cli/tests/testdata/test/exit_sanitizer.out index 4910501fa..684001475 100644 --- a/cli/tests/testdata/test/exit_sanitizer.out +++ b/cli/tests/testdata/test/exit_sanitizer.out @@ -7,21 +7,21 @@ exit(2) ... FAILED ([WILDCARD]) ERRORS exit(0) => ./test/exit_sanitizer.ts:[WILDCARD] -error: AssertionError: Test case attempted to exit with exit code: 0 +error: Error: Test case attempted to exit with exit code: 0 Deno.exit(0); ^ at [WILDCARD] at [WILDCARD]/test/exit_sanitizer.ts:2:8 exit(1) => ./test/exit_sanitizer.ts:[WILDCARD] -error: AssertionError: Test case attempted to exit with exit code: 1 +error: Error: Test case attempted to exit with exit code: 1 Deno.exit(1); ^ at [WILDCARD] at [WILDCARD]/test/exit_sanitizer.ts:6:8 exit(2) => ./test/exit_sanitizer.ts:[WILDCARD] -error: AssertionError: Test case attempted to exit with exit code: 2 +error: Error: Test case attempted to exit with exit code: 2 Deno.exit(2); ^ at [WILDCARD] |