Deno.test
cannot handle the simplest napi async function
#23253
Labels
bug
Something isn't working
node compat
node native extension
related to the node-api (.node)
testing
related to deno test and coverage
bug
Deno.test
cannot handle the simplest napi async functionnopAsync
: sometimes success, sometimes hangs foreversleepAsync
:Promise resolution is still pending but the event loop has already resolved.
fourtyTwoAsync
:Promise resolution is still pending but the event loop has already resolved.
version
deno is latest
deps are latest
reproduce
rust napi code
reproduce.ts
actual
nopAsync
: sometimes success, sometimes hangs foreversleepAsync
:Promise resolution is still pending but the event loop has already resolved.
fourtyTwoAsync
:Promise resolution is still pending but the event loop has already resolved.
expected
above napi async function should not hangs forever, and should be correctly awaited.
The text was updated successfully, but these errors were encountered: