From 12e700bddfad8c23f6b55baca4ca4afb8337af26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 14 Oct 2020 15:19:13 +0200 Subject: 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. --- cli/tests/deno_test_unresolved_promise.out | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 cli/tests/deno_test_unresolved_promise.out (limited to 'cli/tests/deno_test_unresolved_promise.out') 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. -- cgit v1.2.3