-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Sharding
-
Cluster Scalability
A few tests in jstests/sharding use assert.writeError() to verify a command will fail, but this assertion passes with any error code, so it's possible for behavior to change without these tests catching it. We should look through the tests that use this assertion and change them to use assert.commandFailedWithCode() so we can be more confident in our regression testing.