SERVER-56671 Reintroduce delay in user acquisition during test
This commit is contained in:
committed by
Evergreen Agent
parent
34028da5f6
commit
c66c033605
@@ -137,9 +137,17 @@ function runTest(writeNode, readNode, awaitReplication, lock, unlock) {
|
||||
}
|
||||
|
||||
// Set the failpoint before we start the parallel thread.
|
||||
let fp = configureFailPoint(
|
||||
const fp = configureFailPoint(
|
||||
readNode, 'waitForUserCacheInvalidation', {userName: {db: testDB, user: testUser}});
|
||||
|
||||
// We need some time to mutate the auth state before the acquisition completes.
|
||||
const kResolveRolesDelayMS = 5 * 1000;
|
||||
assert.commandWorked(readAdmin.runCommand({
|
||||
configureFailPoint: 'authLocalGetUser',
|
||||
mode: 'alwaysOn',
|
||||
data: {resolveRolesDelayMS: NumberInt(kResolveRolesDelayMS)}
|
||||
}));
|
||||
|
||||
const thread = new Thread(function(port, testUser, testDB) {
|
||||
const mongo = new Mongo('localhost:' + port);
|
||||
assert(mongo);
|
||||
|
||||
Reference in New Issue
Block a user