jstests/replsets/drop_collections_two_phase_write_concern.js
/**
 * Ensures that the operation fails with a write concern timeout.
 */
Ensures that the operation fails with a write concern timeout.
Ensures that the operation fails with a write concern timeout .
function assertTimeout(result) {
    assert.writeErrorWithCode(result, ErrorCodes.WriteConcernFailed);
    assert(result.hasWriteConcernError(), tojson(result));
    assert(result.getWriteConcernError().errInfo.wtimeout, tojson(result));
}
function assertTimeout ( result ) { assert . writeErrorWithCode ( result , ErrorCodes . WriteConcernFailed ) ; assert ( result . hasWriteConcernError ( ) , tojson ( result ) ) ; assert ( result . getWriteConcernError ( ) . errInfo . wtimeout , tojson ( result ) ) ; }
Ensures that the operation fails with a write concern timeout.
Ensures that the operation fails with a write concern timeout .