diff --git a/exercises/cookies/exercise.js b/exercises/cookies/exercise.js index dc505eb..86cb442 100644 --- a/exercises/cookies/exercise.js +++ b/exercises/cookies/exercise.js @@ -58,7 +58,7 @@ exercise.addProcessor(function (mode, callback) { // compare stdout of solution and submissionexercise = comparestdout(exercise) exercise = comparestdout(exercise); -// delayed for 500ms to wait for servers to start so we can start +// delayed for 2000ms to wait for servers to start so we can start // playing with them function query (mode) { var exercise = this diff --git a/exercises/directories/exercise.js b/exercises/directories/exercise.js index 4da16f3..768a9ab 100644 --- a/exercises/directories/exercise.js +++ b/exercises/directories/exercise.js @@ -48,7 +48,7 @@ exercise.addProcessor(function (mode, callback) { this.solutionStdout = through2(); } - setTimeout(query.bind(this, mode), 500); + setTimeout(query.bind(this, mode), 2000); process.nextTick(function () { callback(null, true) @@ -60,7 +60,7 @@ exercise.addProcessor(function (mode, callback) { exercise = comparestdout(exercise) -// delayed for 500ms to wait for servers to start so we can start +// delayed for 2000ms to wait for servers to start so we can start // playing with them function query (mode) { var exercise = this diff --git a/exercises/handling/exercise.js b/exercises/handling/exercise.js index 29c7b6d..20a4a96 100644 --- a/exercises/handling/exercise.js +++ b/exercises/handling/exercise.js @@ -60,7 +60,7 @@ exercise.addProcessor(function (mode, callback) { exercise = comparestdout(exercise) -// delayed for 500ms to wait for servers to start so we can start +// delayed for 2000ms to wait for servers to start so we can start // playing with them function query (mode) { var exercise = this diff --git a/exercises/hello_hapi/exercise.js b/exercises/hello_hapi/exercise.js index c4e1992..b0bdfec 100644 --- a/exercises/hello_hapi/exercise.js +++ b/exercises/hello_hapi/exercise.js @@ -59,7 +59,7 @@ exercise.addProcessor(function (mode, callback) { exercise = comparestdout(exercise) -// delayed for 500ms to wait for servers to start so we can start +// delayed for 2000ms to wait for servers to start so we can start // playing with them function query (mode) { var exercise = this diff --git a/exercises/helping/exercise.js b/exercises/helping/exercise.js index 1e671bb..53982d2 100644 --- a/exercises/helping/exercise.js +++ b/exercises/helping/exercise.js @@ -48,7 +48,7 @@ exercise.addProcessor(function (mode, callback) { this.solutionStdout = through2(); } - setTimeout(query.bind(this, mode), 500); + setTimeout(query.bind(this, mode), 2000); process.nextTick(function () { callback(null, true); @@ -60,7 +60,7 @@ exercise.addProcessor(function (mode, callback) { exercise = comparestdout(exercise); -// delayed for 500ms to wait for servers to start so we can start +// delayed for 2000ms to wait for servers to start so we can start // playing with them function query (mode) { var exercise = this; diff --git a/exercises/proxies/exercise.js b/exercises/proxies/exercise.js index 6319f05..5d489de 100644 --- a/exercises/proxies/exercise.js +++ b/exercises/proxies/exercise.js @@ -64,7 +64,7 @@ exercise.addProcessor(function (mode, callback) { this.solutionStdout = through2(); } - setTimeout(query.bind(this, mode), 500); + setTimeout(query.bind(this, mode), 2000); process.nextTick(function () { callback(null, true) @@ -76,7 +76,7 @@ exercise.addProcessor(function (mode, callback) { exercise = comparestdout(exercise) -// delayed for 500ms to wait for servers to start so we can start +// delayed for 2000ms to wait for servers to start so we can start // playing with them function query (mode) { var exercise = this diff --git a/exercises/routes/exercise.js b/exercises/routes/exercise.js index 4ba848b..c4ce84f 100644 --- a/exercises/routes/exercise.js +++ b/exercises/routes/exercise.js @@ -59,7 +59,7 @@ exercise.addProcessor(function (mode, callback) { exercise = comparestdout(exercise) -// delayed for 500ms to wait for servers to start so we can start +// delayed for 2000ms to wait for servers to start so we can start // playing with them function query (mode) { var exercise = this diff --git a/exercises/streams/exercise.js b/exercises/streams/exercise.js index 0fcb81a..e0573d9 100644 --- a/exercises/streams/exercise.js +++ b/exercises/streams/exercise.js @@ -54,7 +54,7 @@ exercise.addProcessor(function (mode, callback) { }); -// delayed for 500ms to wait for servers to start so we can start +// delayed for 2000ms to wait for servers to start so we can start // playing with them function query (mode) { diff --git a/exercises/uploads/exercise.js b/exercises/uploads/exercise.js index 10dc6a3..64c245a 100644 --- a/exercises/uploads/exercise.js +++ b/exercises/uploads/exercise.js @@ -48,7 +48,7 @@ exercise.addProcessor(function (mode, callback) { this.solutionStdout = through2(); } - setTimeout(query.bind(this, mode), 500); + setTimeout(query.bind(this, mode), 2000); process.nextTick(function () { callback(null, true); @@ -60,7 +60,7 @@ exercise.addProcessor(function (mode, callback) { exercise = comparestdout(exercise); -// delayed for 500ms to wait for servers to start so we can start +// delayed for 2000ms to wait for servers to start so we can start // playing with them function query (mode) { diff --git a/exercises/validation/exercise.js b/exercises/validation/exercise.js index c4e1992..1bf85a6 100644 --- a/exercises/validation/exercise.js +++ b/exercises/validation/exercise.js @@ -59,19 +59,21 @@ exercise.addProcessor(function (mode, callback) { exercise = comparestdout(exercise) -// delayed for 500ms to wait for servers to start so we can start +// delayed for 2000ms to wait for servers to start so we can start // playing with them function query (mode) { var exercise = this function verify (port, stream) { + + var url = 'http://localhost:' + port + '/chickens'; function error (err) { - exercise.emit('fail', 'Error connecting to http://localhost:' + port + ': ' + err.code) + exercise.emit('fail', 'Error connecting to ' + url + ': ' + err.code) } - hyperquest.get('http://localhost:' + port + '/') + hyperquest.get(url) .on('error', error) .pipe(bl(function (err, data) { diff --git a/exercises/validation_using_joi_object/exercise.js b/exercises/validation_using_joi_object/exercise.js index c4b046a..fbc762e 100644 --- a/exercises/validation_using_joi_object/exercise.js +++ b/exercises/validation_using_joi_object/exercise.js @@ -46,7 +46,7 @@ exercise.addProcessor(function (mode, callback) { this.solutionStdout = through2(); } - setTimeout(query.bind(this, mode), 500); + setTimeout(query.bind(this, mode), 2000); process.nextTick(function () { callback(null, true); @@ -58,7 +58,7 @@ exercise.addProcessor(function (mode, callback) { exercise = comparestdout(exercise); -// delayed for 500ms to wait for servers to start so we can start +// delayed for 2000ms to wait for servers to start so we can start // playing with them function query (mode) { diff --git a/exercises/views/exercise.js b/exercises/views/exercise.js index 570765a..29345e4 100644 --- a/exercises/views/exercise.js +++ b/exercises/views/exercise.js @@ -48,7 +48,7 @@ exercise.addProcessor(function (mode, callback) { this.solutionStdout = through2(); } - setTimeout(query.bind(this, mode), 500); + setTimeout(query.bind(this, mode), 2000); process.nextTick(function () { callback(null, true); @@ -60,7 +60,7 @@ exercise.addProcessor(function (mode, callback) { exercise = comparestdout(exercise); -// delayed for 500ms to wait for servers to start so we can start +// delayed for 2000ms to wait for servers to start so we can start // playing with them function query (mode) { var exercise = this;