Skip to content

Commit 25b04cf

Browse files
committed
fix(MongoMemoryServer): use non-static password for authentication creation
fixes #575
1 parent 7b601ca commit 25b04cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mongodb-memory-server-core/src/MongoMemoryServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ export class MongoMemoryServer extends EventEmitter implements ManagerAdvanced {
693693
this.debug(`createAuth: Creating Root user, name: "${this.auth.customRootName}"`);
694694
await db.command({
695695
createUser: this.auth.customRootName,
696-
pwd: 'rootuser',
696+
pwd: this.auth.customRootPwd,
697697
mechanisms: ['SCRAM-SHA-256'],
698698
customData: {
699699
createdBy: 'mongodb-memory-server',

0 commit comments

Comments
 (0)