Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
test: fix tap parser fails if a test logs a number#46056
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
pulkit-30 commented Jan 2, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot commented Jan 2, 2023
Review requested:
|
aduh95 commented Jan 2, 2023
Can you add a test case? |
pulkit-30 commented Jan 2, 2023
Sure. |
pulkit-30 commented Jan 6, 2023
Hey @cjihrig@manekinekko, Have a look at these changes, |
manekinekko left a comment
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.
The fix LGTM. However, I'd recommend moving the fix to the upper-level logic of the parser since we need to catch all possible invalid syntax encountered by each nested parsing rule.
The most common top-level parsing rule is TAPDocument().
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
pulkit-30 commented Jan 10, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Thanks @adhu95 for suggestions, Then we don't need to pass planStart and planEnd as an argument to #Plan method...? WDYT? |
aduh95 commented Jan 10, 2023
I don't think it's a good idea, unless I'm missing something it looks like it makes more sense to keep them as arguments. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as outdated.
This comment was marked as outdated.
pulkit-30 commented Feb 5, 2023
There are some failing checks, is there anything wrong with this Pull Request? |
This comment was marked as outdated.
This comment was marked as outdated.
nodejs-github-bot commented Feb 6, 2023
nodejs-github-bot commented Feb 6, 2023
Landed in 4c08c20 |
manekinekko commented Feb 6, 2023
Congratulations @pulkit-30 🎉 |
pulkit-30 commented Feb 7, 2023
Thanks a lot @manekinekko for your support and reviews 😇 |
PR-URL: nodejs/node#46056Fixes: nodejs/node#46048 Reviewed-By: Moshe Atlow <[email protected]> (cherry picked from commit 4c08c20e575a0954fe3977a20e9f52b4980a2e48)
PR-URL: nodejs/node#46056Fixes: nodejs/node#46048 Reviewed-By: Moshe Atlow <[email protected]> (cherry picked from commit 4c08c20e575a0954fe3977a20e9f52b4980a2e48)
PR-URL: nodejs#46056Fixes: nodejs#46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: #46056Fixes: #46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: nodejs#46056Fixes: nodejs#46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: nodejs#46056Fixes: nodejs#46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: nodejs#46056Fixes: nodejs#46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: #46056 Backport-PR-URL: #46839Fixes: #46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: #46056 Backport-PR-URL: #46839Fixes: #46048 Reviewed-By: Moshe Atlow <[email protected]>
fixes: #46048
code: test.mjs
Before changes:
After changes:
I tried to fix this bug, let me know if these changes are acceptable or to be done at some other place.