jstests/replsets/stable_timestamp_can_advance_after_oplog_hole_abort.js
// Insert a single document into a given collection.
Insert a single document into a given collection.
Insert a single document into a given collection .
function insertFn(host, dbName, collName, doc, expectedErrCode) {
    const testDB = new Mongo(host).getDB(dbName);
    const testColl = testDB.getCollection(collName);
    jsTestLog("Inserting document: " + tojson(doc));
    assert.commandFailedWithCode(testColl.insert(doc), expectedErrCode);
}
function insertFn ( host , dbName , collName , doc , expectedErrCode ) { const testDB = new Mongo ( host ) . getDB ( dbName ) ; const testColl = testDB . getCollection ( collName ) ; jsTestLog ( "Inserting document: " + tojson ( doc ) ) ; assert . commandFailedWithCode ( testColl . insert ( doc ) , expectedErrCode ) ; }
Insert a single document into a given collection.
Insert a single document into a given collection .
// Create the new collection.