diff options
Diffstat (limited to 'cli/tests')
| -rw-r--r-- | cli/tests/testdata/bench/no_check.out | 6 | ||||
| -rw-r--r-- | cli/tests/testdata/bench/unhandled_rejection.out | 6 | ||||
| -rw-r--r-- | cli/tests/testdata/bench/unresolved_promise.out | 4 |
3 files changed, 14 insertions, 2 deletions
diff --git a/cli/tests/testdata/bench/no_check.out b/cli/tests/testdata/bench/no_check.out index 1f90836eb..9548a4f3d 100644 --- a/cli/tests/testdata/bench/no_check.out +++ b/cli/tests/testdata/bench/no_check.out @@ -1,5 +1,9 @@ -error: Uncaught TypeError: Cannot read properties of undefined (reading 'fn') +error: TypeError: Cannot read properties of undefined (reading 'fn') Deno.bench(); ^ at [WILDCARD] at [WILDCARD]/bench/no_check.ts:1:6 +This error was not caught from a benchmark and caused the bench runner to fail on the referenced module. +It most likely originated from a dangling promise, event/timeout handler or top-level code. + +error: Bench failed diff --git a/cli/tests/testdata/bench/unhandled_rejection.out b/cli/tests/testdata/bench/unhandled_rejection.out index 98c9e68b5..dba6d9ed4 100644 --- a/cli/tests/testdata/bench/unhandled_rejection.out +++ b/cli/tests/testdata/bench/unhandled_rejection.out @@ -1,7 +1,11 @@ Check [WILDCARD]/bench/unhandled_rejection.ts -error: Uncaught (in promise) Error: rejection +error: (in promise) Error: rejection reject(new Error("rejection")); ^ at [WILDCARD]/bench/unhandled_rejection.ts:2:10 at new Promise (<anonymous>) at [WILDCARD]/bench/unhandled_rejection.ts:1:1 +This error was not caught from a benchmark and caused the bench runner to fail on the referenced module. +It most likely originated from a dangling promise, event/timeout handler or top-level code. + +error: Bench failed diff --git a/cli/tests/testdata/bench/unresolved_promise.out b/cli/tests/testdata/bench/unresolved_promise.out index b601e9b70..e5c53836a 100644 --- a/cli/tests/testdata/bench/unresolved_promise.out +++ b/cli/tests/testdata/bench/unresolved_promise.out @@ -3,3 +3,7 @@ error: Top-level await promise never resolved await new Promise((_resolve, _reject) => {}); ^ at <anonymous> ([WILDCARD]bench/unresolved_promise.ts:1:1) +This error was not caught from a benchmark and caused the bench runner to fail on the referenced module. +It most likely originated from a dangling promise, event/timeout handler or top-level code. + +error: Bench failed |
