Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix a bug in test

  • Loading branch information...
commit 09b4b7e5163ad1d2e7120edb67f88def3935baaf 1 parent d5ade33
@clowwindy clowwindy authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/test.coffee
  2. +2 −2 test.js
View
4 src/test.coffee
@@ -56,14 +56,14 @@ server.stderr.on 'data', (data) ->
local.stdout.on 'data', (data) ->
console.log data.toString()
- if data.toString().indexOf 'listening at port'
+ if data.toString().indexOf 'listening at port' >= 0
localReady = true
if localReady and serverReady and not curlRunning
runCurl()
server.stdout.on 'data', (data) ->
console.log data.toString()
- if data.toString().indexOf 'listening at port'
+ if data.toString().indexOf 'listening at port' >= 0
serverReady = true
if localReady and serverReady and not curlRunning
runCurl()
View
4 test.js
@@ -71,7 +71,7 @@
local.stdout.on('data', function(data) {
console.log(data.toString());
- if (data.toString().indexOf('listening at port')) {
+ if (data.toString().indexOf('listening at port' >= 0)) {
localReady = true;
if (localReady && serverReady && !curlRunning) {
return runCurl();
@@ -81,7 +81,7 @@
server.stdout.on('data', function(data) {
console.log(data.toString());
- if (data.toString().indexOf('listening at port')) {
+ if (data.toString().indexOf('listening at port' >= 0)) {
serverReady = true;
if (localReady && serverReady && !curlRunning) {
return runCurl();
Please sign in to comment.
Something went wrong with that request. Please try again.