Skip to content

Commit d638c2b

Browse files
committed
Debug
1 parent 28579fd commit d638c2b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/modules/mongodb/src/mongodb-container.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export class MongoDBContainer extends GenericContainer {
4444
}
4545

4646
protected override async containerStarted(startedTestContainer: StartedTestContainer): Promise<void> {
47-
await startedTestContainer.exec(["mongosh", "--eval", "db.getUsers()"]);
4847
await this.initReplicaSet(startedTestContainer);
4948
}
5049

@@ -61,9 +60,9 @@ export class MongoDBContainer extends GenericContainer {
6160
private buildMongoEvalCommand(command: string) {
6261
const cmd = [this.getMongoCmdBasedOnImageTag()];
6362

64-
if (this.username && this.password) {
65-
cmd.push("--username", this.username, "--password", this.password, "--authenticationDatabase", "admin");
66-
}
63+
// if (this.username && this.password) {
64+
// cmd.push("--username", this.username, "--password", this.password, "--authenticationDatabase", "admin");
65+
// }
6766

6867
cmd.push("--eval", command);
6968

0 commit comments

Comments
 (0)