tests: add test for non-integer delay timers.
authorJulien Gilli <julien.gilli@joyent.com>
Tue, 26 Aug 2014 18:45:12 +0000 (11:45 -0700)
committerFedor Indutny <fedor@indutny.com>
Tue, 2 Sep 2014 18:22:57 +0000 (22:22 +0400)
commit8e60b4523cc9097aad81e0dbbc6d24617c279e66
tree7438e9d69bd091c4e821450b532473b3eb482794
parentb869797a2de4c806382975f4114aac8841edcb15
tests: add test for non-integer delay timers.

PR #8034 came with a test to make sure that timers expiry is based on
monotonic time and not on wall-clock time. However, a bug in the
implementation broke timers with non-integer delays. A fix for this
issue was provided with PR #8073, but it didn't come with a test.

Because #8073 fixed a subtle issue that could reappear in the future,
and because the impact of such an issue would be significant, I suggest
adding this test.

The test would timeout after 1 minute if the issue was reproduced.
Otherwise it will run very quickly.

Reviewed-By: Fedor Indutny <fedor@indutny.com>
test/simple/test-timers-non-integer-delay.js [new file with mode: 0644]