Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timing adjustments to checkExec #44

Merged
merged 1 commit into from
May 11, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exercises/offloading_the_work/exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function checkExec (mode, callback) {

var delay = Date.now() - start

if (delay < 100 || delay > 300) {
if (delay < 100 || delay > 500) {
exercise.emit('fail', 'Slept for the right amount of time (asked for 111ms, slept for ' + delay + ')')
return callback(null, false)
}
Expand All @@ -150,7 +150,7 @@ function checkExec (mode, callback) {

delay = Date.now() - start

if (delay < 1000 || delay > 1300) {
if (delay < 1000 || delay > 1500) {
exercise.emit('fail', 'Slept for the right amount of time (asked for 1111ms, slept for ' + delay + 'ms)')
return callback(null, false)
}
Expand Down