summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-10-14 15:19:13 +0200
committerGitHub <noreply@github.com>2020-10-14 15:19:13 +0200
commit12e700bddfad8c23f6b55baca4ca4afb8337af26 (patch)
tree54c6943cc725e70153db2ef8536c6e6c82b4de9f /cli/tests/integration_tests.rs
parente9f02c231473ba42f506a895734d445cd31d379f (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/integration_tests.rs')
-rw-r--r--cli/tests/integration_tests.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 66a83a655..9dff74f25 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -1646,6 +1646,12 @@ itest!(deno_test_no_check {
output: "deno_test.out",
});
+itest!(deno_test_unresolved_promise {
+ args: "test test_unresolved_promise.js",
+ exit_code: 1,
+ output: "deno_test_unresolved_promise.out",
+});
+
#[test]
fn timeout_clear() {
// https://github.com/denoland/deno/issues/7599