-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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: add gc tracking API to common, refactor pummel net test + move it to parallel #21794
Conversation
This enables the test to run as part of the regular test suite.
Any chance these changes also apply to the other two memleak tests in pummel? ( Also, we should probably run a stress test just to make sure we're not introducing unreliable tests into the |
This enables the test to run as part of the regular test suite.
Yes – not sure about the VM test but the TLS one is definitely of the same kind. Added a similar commit for the TLS test :)
Locally, all 3 tests happily pass Regular CI: https://ci.nodejs.org/job/node-test-pull-request/15859/ |
test/common/README.md
Outdated
@@ -326,6 +326,21 @@ See `common.expectWarning()` for usage. | |||
|
|||
Indicates whether 'opensslCli' is supported. | |||
|
|||
### onGC(target, listener) |
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.
Should this section go before the opensslCli()
, ABC-wise?
test/common/README.md
Outdated
### onGC(target, listener) | ||
* `target` [<Object>] | ||
* `listener` [<Object>] | ||
* `listener.ongc` [<Function>] |
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.
`listener.ongc`
-> `ongc`
for consistency with other doc cases?
test/common/README.md
Outdated
a full `setImmediate()` invocation passes. | ||
|
||
`listener` is an object to make it easier to use a closure; the target object | ||
should not be in scope when `listener.ongc` is created. |
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.
`listener.ongc`
-> `listener.ongc()`
?
@vsemozhetbyt Thanks, done in 24bd33b :) |
Landed in d94950e...9a34c5b |
PR-URL: #21794 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
This enables the test to run as part of the regular test suite. PR-URL: #21794 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
This enables the test to run as part of the regular test suite. PR-URL: #21794 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #21794 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
This enables the test to run as part of the regular test suite. PR-URL: #21794 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
This enables the test to run as part of the regular test suite. PR-URL: #21794 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes