Skip to content

Commit

Permalink
Apply PR practicalmeteor#68 to code
Browse files Browse the repository at this point in the history
  • Loading branch information
reywood committed Jan 31, 2017
1 parent c7a5775 commit 501ab40
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Cakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'coffee-script/register'

ChildProcess = require './lib/ChildProcess'

mochaCmdLine = "mocha --colors --compilers coffee:coffee-script/register --reporter spec tests/lib/*Test.coffee"
Expand Down
1 change: 0 additions & 1 deletion lib/Meteor.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ class Meteor extends EventEmitter
hasStartedMongoDBText: (buffer)=>
if buffer.lastIndexOf('Started MongoDB') isnt -1
@mongodb = new MeteorMongodb(@childProcess.child.pid)
@emit "mongodb ready"


hasErrorText: (buffer)=>
Expand Down
3 changes: 2 additions & 1 deletion lib/MeteorMongodb.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ class MeteorMongodb extends EventEmitter
ppid: @meteorPid
, (err, resultList )=>
@mongodChilds = resultList
if (err)
if (err || resultList.length == 0)
log.warn "spacjam: Warning: Couldn't find any mongod children:\n", err
else if resultList.length > 1
log.warn "spacjam: Warning: Found more than one mongod child:\n", resultList
else
log.debug "Found meteor mongod child with pid: ", resultList[0].pid
@emit "mongodb ready"


kill: ->
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spacejam",
"version": "1.6.1",
"version": "1.6.1-pr68",
"dependencies": {
"chai": "1.9.2",
"glob": "4.0.6",
Expand Down

0 comments on commit 501ab40

Please # to comment.