-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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: general improvements to vm tests #14458
Conversation
test/parallel/test-vm-context.js
Outdated
context = vm.createContext({ 'foo': 'bar', 'thing': 'lala' }); | ||
assert.strictEqual('bar', context.foo); | ||
assert.strictEqual('lala', context.thing); | ||
|
||
console.error('test updating context'); | ||
// Rest updating context |
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.
Rest
is a typo, right?
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.
yep, should have been Test
Not objecting enough to stop it, but I'm not a fan of removing |
I've been considering introducing a new |
8295cbe
to
cc66afb
Compare
What is the downside of (Feel free to take this offline if it's a distraction from the PR generally.) |
most of the time the |
If most of the logging is useless (which is an assessment I do not agree with), how does creating a whole new way to control logging improve anything? It seems that it would be better to improve or remove existing log messages. |
Although looking more at these specific logging messages...yeah, not sure I get the utility of them. Sorry I said anything here. I should have saved it for something else where the log messages might have value. 😆 |
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.
LGTM if CI is green.
@Trott ... I definitely understand where you're coming from. Introducing a new |
p.stderr.on('data', function(data) { | ||
assert.fail(`Unexpected stderr data: ${data}`); | ||
}); | ||
p.stderr.on('data', common.mustNotCall); |
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 function should be invoked: common.mustNotCall()
.
p.stdout.on('data', function(data) { | ||
assert.fail(`Unexpected stdout data: ${data}`); | ||
}); | ||
p.stdout.on('data', common.mustNotCall); |
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.
Same here.
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.
Needs nits from @lpinca before landing.
cc66afb
to
120bffe
Compare
Updated, rebased |
updated since review, dismissing request for changes
120bffe
to
3fc4543
Compare
Rebased. CI before landing: https://ci.nodejs.org/job/node-test-pull-request/9445/ |
Canceled the CI run... there appear to be some issues in CI-land (ping @nodejs/build) |
Trying new CI run again: https://ci.nodejs.org/job/node-test-pull-request/9454/ |
PR-URL: #14458 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Landed 4b23b42 |
PR-URL: #14458 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
PR-URL: #14458 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
General improvements to vm tests
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test