From 0a3be3e7f4643a421ce816202dba56ae8d5f5f0d Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Wed, 18 May 2022 17:35:16 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/index.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index a92a97b..0263874 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -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' } diff --git a/ts/index.ts b/ts/index.ts index 167eeb8..03cdf5b 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -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}`);