Skip to content

Commit

Permalink
add chickens to path for validation exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
dylancwood committed Jan 31, 2015
1 parent a6845fa commit 11cdb01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions exercises/validation/exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@ 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) {

Expand Down

0 comments on commit 11cdb01

Please sign in to comment.