jstests/libs/write_concern_util.js
// Asserts that writeConcern timed out.
Asserts that writeConcern timed out.
Asserts that writeConcern timed out .
function checkWriteConcernTimedOut(res) {
    assertWriteConcernError(res);
    const errInfo = res.writeConcernError.errInfo;
    assert(errInfo, "No writeConcernError errInfo, got: " + tojson(res));
    assert(errInfo.wtimeout, "No errInfo wtimeout, got: " + tojson(res));
}
function checkWriteConcernTimedOut ( res ) { assertWriteConcernError ( res ) ; const errInfo = res . writeConcernError . errInfo ; assert ( errInfo , "No writeConcernError errInfo, got: " + tojson ( res ) ) ; assert ( errInfo . wtimeout , "No errInfo wtimeout, got: " + tojson ( res ) ) ; }
Asserts that writeConcern timed out.
Asserts that writeConcern timed out .