test: make test-tls-alert-handling more strict#14650
test: make test-tls-alert-handling more strict#14650Trott wants to merge 1 commit intonodejs:masterfrom
Conversation
|
Boo! Failed on AIX, CentOS 5, and some (but not all) Windows variants. I think I can fix it, though... |
|
Uh...never mind! |
|
Argh! Never mind! Test is flaky under load but only because we're now checking that error events are being emitted etc. I think I just need to keep the event loop open until everything is emitted. |
Use `common.mustCall()` and `common.mustNotCall()` to more rigorously check that functions (especially no-op error handlers) are called the expected number of times in test-tls-alert-handling.
|
OK, the fix is in! Please Take Another Look! |
|
Landed in ab2b331 |
Use `common.mustCall()` and `common.mustNotCall()` to more rigorously check that functions (especially no-op error handlers) are called the expected number of times in test-tls-alert-handling. PR-URL: nodejs#14650 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: David Cai <davidcai1993@yahoo.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Use `common.mustCall()` and `common.mustNotCall()` to more rigorously check that functions (especially no-op error handlers) are called the expected number of times in test-tls-alert-handling. PR-URL: #14650 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: David Cai <davidcai1993@yahoo.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
This does not land cleanly in LTS. Please feel free to manually backport by following the guide. Please also feel free to replace do-not-land if it is being backported |
Use
common.mustCall()andcommon.mustNotCall()to more rigorouslycheck that functions (especially no-op error handlers) are called the
expected number of times in test-tls-alert-handling.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test tls