-
Notifications
You must be signed in to change notification settings - Fork 59
Fix JSON-RPC request parsing errors being ignored #2138
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
Conversation
wasm-node/javascript/test/misc.mjs
Outdated
.then(async (chain) => { | ||
const response = await chain.nextJsonRpcResponse(); | ||
const parsed = JSON.parse(response); | ||
if (parsed.id === null && parsed.error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, this shouldn't be null
, right? It should be the id
sent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. The tests take a very long time to run for me locally (several minutes), and I ran out of patience before it hit the new test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand the feeling, our zombienet tests have the same problem :)
Thanks for the prompt fix Pierre 🫶 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the prompt fix!
Hey @tomaka! |
Close #2137
Work time: 45mn