Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deno test WebSocket completing cleanly, but reporting BadResource: Bad resource ID #9958

Closed
aricart opened this issue Apr 1, 2021 · 2 comments · Fixed by #9755
Closed

Deno test WebSocket completing cleanly, but reporting BadResource: Bad resource ID #9958

aricart opened this issue Apr 1, 2021 · 2 comments · Fixed by #9755

Comments

@aricart
Copy link
Contributor

aricart commented Apr 1, 2021

I am a bit miffed by this error reported by the test runner (notice the async/ops resource sanitizer is not printing (I am the one doing the print). The test completes, reports passed, but a trace at the end.
Any hints, thoughts?

running 1 tests
test clean shutdown ...
{ "0": "stdin", "1": "stdout", "2": "stderr", "3": "webSocketStream" }
ok (11ms)

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (11ms)

error: Uncaught (in promise) BadResource: Bad resource ID
    at handleError (deno:core/core.js:186:12)
    at jsonOpParseResult (deno:core/core.js:356:9)
    at opSync (deno:core/core.js:259:32)
    at jsonOpSync (deno:core/core.js:372:12)
    at Object.close (deno:core/core.js:383:12)
    at WebSocket.#eventLoop (deno:op_crates/websocket/01_websocket.js:353:18)

@aricart
Copy link
Contributor Author

aricart commented Apr 1, 2021

yeap duplicate of this. #9879
sorry didn't see it at first.

@aricart aricart closed this as completed Apr 1, 2021
@aricart
Copy link
Contributor Author

aricart commented Apr 1, 2021

Thanks @lucacasonato

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant