Skip to content

Commit

Permalink
fix: pass port as object to get-port (#72)
Browse files Browse the repository at this point in the history
Resolves #71
  • Loading branch information
Lanchi authored and nodkz committed Aug 21, 2018
1 parent dc57509 commit 55ee321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MongoMemoryServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default class MongoMemoryServer {
let tmpDir;

const instOpts = this.opts.instance;
data.port = await getport(instOpts.port);
data.port = await getport({ port: instOpts.port });
this.debug = Debug(`Mongo[${data.port}]`);
this.debug.enabled = !!this.opts.debug;
data.dbName = await generateDbName(instOpts.dbName);
Expand Down

0 comments on commit 55ee321

Please sign in to comment.