jstests/libs/write_concern_util.js
// Asserts that a writeConcernError was received.
Asserts that a writeConcernError was received.
Asserts that a writeConcernError was received .
function assertWriteConcernError(res) {
    assert(res.writeConcernError, "No writeConcernError received, got: " + tojson(res));
    assert(res.writeConcernError.code, "No writeConcernError code, got: " + tojson(res));
    assert(res.writeConcernError.errmsg, "No writeConcernError errmsg, got: " + tojson(res));
}
function assertWriteConcernError ( res ) { assert ( res . writeConcernError , "No writeConcernError received, got: " + tojson ( res ) ) ; assert ( res . writeConcernError . code , "No writeConcernError code, got: " + tojson ( res ) ) ; assert ( res . writeConcernError . errmsg , "No writeConcernError errmsg, got: " + tojson ( res ) ) ; }
Asserts that a writeConcernError was received.
Asserts that a writeConcernError was received .