Skip to content

Commit c5f66a3

Browse files
committed
style(MongoMemoryReplSet): _waitForPrimary: add log that function got called
1 parent b2d63d9 commit c5f66a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ export class MongoMemoryReplSet extends EventEmitter {
588588
* @throws if timeout is reached
589589
*/
590590
protected async _waitForPrimary(timeout: number = 30000): Promise<void> {
591+
log('_waitForPrimary: Waiting for an Primary');
591592
let timeoutId: NodeJS.Timeout | undefined;
592593

593594
await Promise.race([

0 commit comments

Comments
 (0)