fix(core): update

This commit is contained in:
Philipp Kunz 2022-05-18 17:35:16 +02:00
parent 92b0e2a3ce
commit 0a3be3e7f4
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartmongo',
version: '2.0.0',
version: '2.0.1',
description: 'create a local mongodb for testing'
}

View File

@ -18,7 +18,9 @@ export class SmartMongo {
}
public async start(countArg: number = 1) {
this.mongoReplicaSet = await plugins.mongoPlugin.MongoMemoryReplSet.create({ replSet: { count: countArg } });
this.mongoReplicaSet = await plugins.mongoPlugin.MongoMemoryReplSet.create({ replSet: { count: countArg }, instanceOpts: [{
storageEngine: 'wiredTiger'
}]});
this._readyDeferred.resolve();
console.log(`mongoReplicaSet with ${countArg} replicas started.`);
console.log(`@pushrocks/smartmongo version ${commitinfo.version}`);