improve README

This commit is contained in:
2016-11-18 00:59:57 +01:00
parent 90d9a25b3f
commit 0b8adea736
4 changed files with 15 additions and 8 deletions

View File

@ -23,7 +23,7 @@ describe('mongodb', function () {
this.timeout(30000)
mongoChildProcess = shelljs.exec('mongod --dbpath=./test/data --port 27017', { async: true, silent: true })
let doneCalled = false
mongoChildProcess.stdout.on('data', function (data) {
mongoChildProcess.stdout.on('new', function (data) {
console.log(smartstring.indent.indentWithPrefix(data, '*** MongoDB Process *** : '))
if (!doneCalled) {
if (/waiting for connections on port 27017/.test(data)) {