Browse files

Added time to the popstate event timeout

Apparently, node 0.8 mixes up thread execution order and sometimes the 0ms timeout isn't enough to catch the popstate event.  This caused ```npm test``` to fail.  Interestingly, it did not cause ```test/runner -s window/history.js``` to fail.  Its always scary when issues are not stateless...
  • Loading branch information...
1 parent d9adcb8 commit a0d3e9efc9a264bc654e6c9e5613e7240c5dee8a Brian Peacock committed with domenic Feb 6, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/window/history.js
@@ -130,5 +130,5 @@ exports["the history object should fire popstate on the window while navigating
t.ok(eventFired, "popstate event should be fired.");
t.strictEqual(state, eventState);
- }, 0);
+ }, 10);

0 comments on commit a0d3e9e

Please sign in to comment.