diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-10-14 15:19:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 15:19:13 +0200 |
commit | 12e700bddfad8c23f6b55baca4ca4afb8337af26 (patch) | |
tree | 54c6943cc725e70153db2ef8536c6e6c82b4de9f /cli/tests/deno_test_unresolved_promise.out | |
parent | e9f02c231473ba42f506a895734d445cd31d379f (diff) |
fix(test): return error when awaiting unresolved promise (#7968)
This commit fixes test runner by awaitning "Deno.runTests()" call,
which ensures proper error is returned when there's an unresolved
promise that's being awaited.
Diffstat (limited to 'cli/tests/deno_test_unresolved_promise.out')
-rw-r--r-- | cli/tests/deno_test_unresolved_promise.out | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/deno_test_unresolved_promise.out b/cli/tests/deno_test_unresolved_promise.out new file mode 100644 index 000000000..cc4f2985e --- /dev/null +++ b/cli/tests/deno_test_unresolved_promise.out @@ -0,0 +1,4 @@ +Check [WILDCARD] +running 2 tests +test unresolved promise ... in promise +error: Module evaluation is still pending but there are no pending ops or dynamic imports. This situation is often caused by unresolved promise. |