Details
-
Engineering Test
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
None
-
Service Arch
Description
As max.hirschhorn@mongodb.com said well, "assert.commandFailedWithCode() should always be preferred over assert.commandFailed() because it is possible to write the input parameters to a command incorrectly where it fails with BadValue/TypeMismatch/FailedToParse/etc. and means the test isn't exercising what it intended".
assert.throws has the same problem and assert.throwsWithCode should be used instead.
Attachments
Issue Links
- is related to
-
SERVER-78791 x509_client.js must define SERVER_USER
-
- Closed
-