Permalink
Browse files

fixing backward compatibiliyt with 0.8 (testing only)

  • Loading branch information...
1 parent 734515f commit 400aec514365cac2b1be1901cc40a9f8ab065116 @mrak committed Mar 16, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 spec/helpers/waits-for.coffee
@@ -12,4 +12,7 @@ module.exports = waitsFor = (fn, message, range, finish, time = process.hrtime()
assert elapsed > min, "Condition succeeded before #{min}ms were up"
return finish()
- setImmediate -> waitsFor.call @, fn, message, range, finish, time
+ if setImmediate?
+ setImmediate -> waitsFor.call @, fn, message, range, finish, time
+ else
+ setTimeout (-> waitsFor.call @, fn, message, range, finish, time), 5

0 comments on commit 400aec5

Please sign in to comment.