Commit c678ecbc authored by not-an-aardvark's avatar not-an-aardvark Committed by Rich Trott
Browse files

test: make crypto.timingSafeEqual test less flaky

The `crypto.timingSafeEqual` test still seems to be a bit flaky. This
makes a few changes to the test:

* Separates the basic usage and the benchmarking into different tests

* Moves the timing-sensitive benchmark function into a separate module,
and reparses the module on every iteration of the loop to avoid shared
state between timing measurements.

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


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 5282f0be
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