jstests/noPassthrough/out_max_time_ms.js
/**
 * Prevents premature maxTimeMS expiration by enabling the "maxTimeNeverTimeOut" failpoint on each
 * node under test.
 */
Prevents premature maxTimeMS expiration by enabling the "maxTimeNeverTimeOut" failpoint on each
node under test.
Prevents premature maxTimeMS expiration by enabling the " maxTimeNeverTimeOut " failpoint on each node under test .
function prohibitMaxTimeExpiration() {
    for (const conn of connsToAllNodes) {
        assert.commandWorked(conn.getDB("admin").runCommand(
            {configureFailPoint: "maxTimeNeverTimeOut", mode: "alwaysOn"}));
    }
}
function prohibitMaxTimeExpiration ( ) { for ( const conn of connsToAllNodes ) { assert . commandWorked ( conn . getDB ( "admin" ) . runCommand ( { configureFailPoint : "maxTimeNeverTimeOut" , mode : "alwaysOn" } ) ) ; } }
Prevents premature maxTimeMS expiration by enabling the "maxTimeNeverTimeOut" failpoint on each
 node under test.
Prevents premature maxTimeMS expiration by enabling the " maxTimeNeverTimeOut " failpoint on each node under test .