-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
test: fix tap parser fails if a test logs a number #46056
Conversation
Review requested:
|
Can you add a test case? |
Sure. |
Hey @cjihrig @manekinekko, Have a look at these changes, |
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().
Thanks @adhu95 for suggestions, Then we don't need to pass planStart and planEnd as an argument to #Plan method...? WDYT? |
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. |
This comment was marked as outdated.
This comment was marked as outdated.
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.
Landed in 4c08c20 |
Congratulations @pulkit-30 🎉 |
Thanks a lot @manekinekko for your support and reviews 😇 |
PR-URL: nodejs/node#46056 Fixes: nodejs/node#46048 Reviewed-By: Moshe Atlow <[email protected]> (cherry picked from commit 4c08c20e575a0954fe3977a20e9f52b4980a2e48)
PR-URL: nodejs/node#46056 Fixes: nodejs/node#46048 Reviewed-By: Moshe Atlow <[email protected]> (cherry picked from commit 4c08c20e575a0954fe3977a20e9f52b4980a2e48)
PR-URL: nodejs#46056 Fixes: nodejs#46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: #46056 Fixes: #46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: nodejs#46056 Fixes: nodejs#46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: nodejs#46056 Fixes: nodejs#46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: nodejs#46056 Fixes: nodejs#46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: #46056 Backport-PR-URL: #46839 Fixes: #46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: #46056 Backport-PR-URL: #46839 Fixes: #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.