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 <firstname.lastname@example.org> Reviewed-By: Colin Ihrig <email@example.com> Reviewed-By: James M Snell <firstname.lastname@example.org> Reviewed-By: Sakthipriyan Vairamani <email@example.com> Reviewed-By: Luigi Pinca <firstname.lastname@example.org>
- Loading branch information...
Showing with 19 additions and 25 deletions.