You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: Getting async leaking error when testing opine v2
Setup:
Deno Version: 1.16.4
v8 Version: 9.7.16.15
Typescript Version: 4.4.2
SuperDeno Version: 4.7.1
Details
When running a simple test with opine@2.0.0 Deno Test Assertions return AssertionError: Test case is leaking async ops. - there are no async's in the example code which is pasted below.
running 1 test from file:///workspace/deno-playground/test.ts
test hello world ... FAILED (12ms)
failures:
hello world
AssertionError: Test case is leaking async ops.
Before:
- dispatched: 0
- completed: 0
After:
- dispatched: 2
- completed: 1
Ops:
op_net_accept:
Before:
- dispatched: 0
- completed: 0
After:
- dispatched: 1
- completed: 0
Make sure to await all promises returned from Deno APIs before
finishing test case.
at assert (deno:runtime/js/06_util.js:41:13)
at asyncOpSanitizer (deno:runtime/js/40_testing.js:128:7)
at async resourceSanitizer (deno:runtime/js/40_testing.js:144:7)
at async Object.exitSanitizer [as fn] (deno:runtime/js/40_testing.js:176:9)
at async runTest (deno:runtime/js/40_testing.js:381:7)
at async Object.runTests (deno:runtime/js/40_testing.js:494:22)
failures:
hello world
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out (147ms)
error: Test failed
The text was updated successfully, but these errors were encountered:
Issue: Getting async leaking error when testing opine v2
Setup:
Details
server.ts
test.ts
Run
deno test -A --unstable test.ts
Output
The text was updated successfully, but these errors were encountered: