| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #63485 +/- ##
==========================================
- Coverage 90.24% 90.22% -0.03%
==========================================
Files 741 741
Lines 241665 241665
Branches 45543 45538 -5
==========================================
- Hits 218092 218043 -49
- Misses 15105 15158 +53
+ Partials 8468 8464 -4 see 31 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
| server.on('secureConnection', () => { | ||
| reject(new Error('secureConnection should not fire')); | ||
| }); | ||
| server.on('secureConnection', common.mustNotCall('secureConnection listener')); |
There was a problem hiding this comment.
What happens if this fires while promise is being awaited at the end of the test function, and tlsClientError doesn't fire? Seems like the event will be handled outside of the test's promise task, promise won't be resolved or rejected, and the test will hang until timeout?
Sorry, something went wrong.
There was a problem hiding this comment.
Lines 563 to 572 in 5922197
It would throw an unhandled rejection which would terminate the process immediately
In any case, a pending promise is not enough to keep the process alive, so no the test won't hang
Sorry, something went wrong.
There was a problem hiding this comment.
lgtm
Sorry, something went wrong.
Sorry, something went wrong.
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: #63485 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: #63485 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: #63485 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: #63485 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
| Back | FazBrowse Home | New Git URL |
Make the assertions more intention revealing