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
The response "vanishes" in the void. There is no "apparent error", at least trying to catch the error with try/catch or .catch() has no effect. not sure if it gets caught by jsdom global error handler ?
While I was not able to confirm the promise to resolve, I do think it eventually resolves since the test still completes.
All the errors of this directive are probably the same one, the http server doesn't seem to receive the request (and does not errors too, checked with .on(error)) so there is definitely something strange
It could be an upstream an error
Logs
ERRORS
%@event reacts to events and performs http sequence => https://jsr.io/@libs/testing/4.0.1/_testing/deno.ts:7:26
error: AssertionError: Expected object to be an instance of "Request" but was "null".
throw new AssertionError(msg);
^
at assertInstanceOf (https://jsr.io/@std/assert/1.0.9/instance_of.ts:63:9)
at toBeInstanceOf (https://jsr.io/@std/expect/1.0.9/_matchers.ts:209:5)
at applyMatcher (https://jsr.io/@std/expect/1.0.9/expect.ts:223:13)
at Proxy.<anonymous> (https://jsr.io/@std/expect/1.0.9/expect.ts:233:13)
at eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:184:18), <anonymous>:6:24)
at eventLoopTick (ext:core/01_core.js:214:9)
at async script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:185:3)
at async test.permissions.net (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:74:15)
%@event inherits modifiers from %http directive => https://jsr.io/@libs/testing/4.0.1/_testing/deno.ts:7:26
error: AssertionError: Expected object to be an instance of "Request" but was "null".
throw new AssertionError(msg);
^
at assertInstanceOf (https://jsr.io/@std/assert/1.0.9/instance_of.ts:63:9)
at toBeInstanceOf (https://jsr.io/@std/expect/1.0.9/_matchers.ts:209:5)
at applyMatcher (https://jsr.io/@std/expect/1.0.9/expect.ts:223:13)
at Proxy.<anonymous> (https://jsr.io/@std/expect/1.0.9/expect.ts:233:13)
at eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:184:18), <anonymous>:6:24)
at eventLoopTick (ext:core/01_core.js:214:9)
at async script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:185:3)
at async test.permissions.net (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:74:15)
%@event supports multiple listeners => https://jsr.io/@libs/testing/4.0.1/_testing/deno.ts:7:26
error: AssertionError: Values are not strictly equal.
[Diff] Actual / Expected
- 0
+ 1
throw new AssertionError(message);
^
at assertStrictEquals (https://jsr.io/@std/assert/1.0.9/strict_equals.ts:66:9)
at toBe (https://jsr.io/@std/expect/1.0.9/_matchers.ts:29:5)
at applyMatcher (https://jsr.io/@std/expect/1.0.9/expect.ts:223:13)
at Proxy.<anonymous> (https://jsr.io/@std/expect/1.0.9/expect.ts:233:13)
at eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:184:18), <anonymous>:7:21)
at eventLoopTick (ext:core/01_core.js:214:9)
at async script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:185:3)
at async test.permissions.net (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:74:15)
%@event with object notation attaches listeners => https://jsr.io/@libs/testing/4.0.1/_testing/deno.ts:7:26
error: AssertionError: Values are not strictly equal.
[Diff] Actual / Expected
- null
+ "foo"
throw new AssertionError(message);
^
at assertStrictEquals (https://jsr.io/@std/assert/1.0.9/strict_equals.ts:66:9)
at toBe (https://jsr.io/@std/expect/1.0.9/_matchers.ts:29:5)
at applyMatcher (https://jsr.io/@std/expect/1.0.9/expect.ts:223:13)
at Proxy.<anonymous> (https://jsr.io/@std/expect/1.0.9/expect.ts:233:13)
at eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:184:18), <anonymous>:6:21)
at eventLoopTick (ext:core/01_core.js:214:9)
at async script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:185:3)
at async test.permissions.net (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:74:15)
FAILURES
%@event reacts to events and performs http sequence => https://jsr.io/@libs/testing/4.0.1/_testing/deno.ts:7:26
%@event inherits modifiers from %http directive => https://jsr.io/@libs/testing/4.0.1/_testing/deno.ts:7:26
%@event supports multiple listeners => https://jsr.io/@libs/testing/4.0.1/_testing/deno.ts:7:26
%@event with object notation attaches listeners => https://jsr.io/@libs/testing/4.0.1/_testing/deno.ts:7:26
Minimal reproduction example
Run deno test on windows
I have searched for existing issues
Yes
The text was updated successfully, but these errors were encountered:
Scope
http, repo
Environment
deno, windows
What is happening?
Followup of #56, #53
All the tests on deno + windows works except for the http/event directive for some reason (the regular http directive work as expected)
It can be narrowed down to:
mizu/@mizu/http/mod.ts
Lines 167 to 170 in 2099e6f
The response "vanishes" in the void. There is no "apparent error", at least trying to catch the error with try/catch or .catch() has no effect. not sure if it gets caught by jsdom global error handler ?
While I was not able to confirm the promise to resolve, I do think it eventually resolves since the test still completes.
All the errors of this directive are probably the same one, the http server doesn't seem to receive the request (and does not errors too, checked with
.on(error)
) so there is definitely something strangeIt could be an upstream an error
Logs
Minimal reproduction example
I have searched for existing issues
Yes
The text was updated successfully, but these errors were encountered: