Please sign in to comment.
test: make module testing stricter
In test-module-loading-error: * Do not skip the rest of the test just because we are running on a platform for which the test does not know the expected system error message. Simply skip the message validation but run the remainder of the test. * Use assert.throws() in place of try/catch * Make checks more strict. Instead of partial string matches, match the entire string. Add check for Error name to at least do some validation in situations where we do not have the system error message. PR-URL: #11116 Reviewed-By: Daniel Bevenius <email@example.com> Reviewed-By: Colin Ihrig <firstname.lastname@example.org> Reviewed-By: James M Snell <email@example.com> Reviewed-By: Sakthipriyan Vairamani <firstname.lastname@example.org> Reviewed-By: Luigi Pinca <email@example.com>
- Loading branch information...
Showing with 19 additions and 25 deletions.