Skip to content

Commit

Permalink
zomg, it defo works OOB
Browse files Browse the repository at this point in the history
  • Loading branch information
robashton committed Oct 28, 2012
1 parent 26978b1 commit bc5ac2e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion NuGet/content/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
--require should
--require mocha-cakes
--reporter spec
--recursive
--timeout 10000
--slow 5000
--compilers coffee:coffee-script
--compilers coffee:coffee-script

11 changes: 7 additions & 4 deletions src/zombify/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var Driver = function(dir, options) {
this.options = options || {}
this.options.port = this.options.port || parseInt(Math.random() * 62000, 10) + 2000
this.options.ipcport = this.options.ipcport || parseInt(Math.random() * 62000, 10) + 2000
this.options.debug = this.options.debug || false
this.process = null
this.baseHref = 'http://localhost:' + this.options.port
}
Expand Down Expand Up @@ -47,7 +48,6 @@ Driver.prototype = {
console.error(data)
})
})

req.on('error', function(err) {
console.error(err)
})
Expand All @@ -62,13 +62,16 @@ Driver.prototype = {
})
},
onStdOut: function(data) {
// console.log(data)
if(this.options.debug)
console.log(data)
},
onStdErr: function(data) {
console.log(data)
if(this.options.debug)
console.log(data)
},
onExit: function(code) {
console.log(code)
if(this.options.debug)
console.log(code)
},
stop: function(cb) {
this.process.kill()
Expand Down

0 comments on commit bc5ac2e

Please sign in to comment.