fix(core): update
This commit is contained in:
parent
92b0e2a3ce
commit
0a3be3e7f4
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smartmongo',
|
name: '@pushrocks/smartmongo',
|
||||||
version: '2.0.0',
|
version: '2.0.1',
|
||||||
description: 'create a local mongodb for testing'
|
description: 'create a local mongodb for testing'
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,9 @@ export class SmartMongo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async start(countArg: number = 1) {
|
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();
|
this._readyDeferred.resolve();
|
||||||
console.log(`mongoReplicaSet with ${countArg} replicas started.`);
|
console.log(`mongoReplicaSet with ${countArg} replicas started.`);
|
||||||
console.log(`@pushrocks/smartmongo version ${commitinfo.version}`);
|
console.log(`@pushrocks/smartmongo version ${commitinfo.version}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user