Commit ae257ca0 authored by Rich Trott's avatar Rich Trott
Browse files

test: improve pummel/test-timers.js

* use Date.now() instead of new Date() because only the timestamp is
  ever used, so we don't need the full Date object
* use separate start times recorded for the two different test cases
* improve assertion messages

PR-URL: https://github.com/nodejs/node/pull/35175


Reviewed-By: default avatarDaijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarShingo Inoue <leko.noor@gmail.com>
parent 26e660f9
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment