We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7107c59 commit 89c8af6Copy full SHA for 89c8af6
packages/mongodb-memory-server-core/src/MongoMemoryReplSet.ts
@@ -468,7 +468,7 @@ export class MongoMemoryReplSet extends EventEmitter {
468
),
469
new Promise((res, rej) => {
470
timeoutId = setTimeout(() => {
471
- rej(`Timed out after ${timeout}ms while waiting for an Primary`);
+ rej(new Error(`Timed out after ${timeout}ms while waiting for an Primary`));
472
}, timeout);
473
}),
474
]);
0 commit comments