diff options
author | Rich Trott <rtrott@gmail.com> | 2017-05-30 13:06:52 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-06-01 15:47:42 -0700 |
commit | ce5745bf92f586c58366e9f738441d69118f2c18 (patch) | |
tree | 2b121a281fc58786d3188bba185a12dc90cfde51 /src/inspector_socket.h | |
parent | 17e10b33c2c356ab276a98cabd116a8416147f33 (diff) | |
download | android-node-v8-ce5745bf92f586c58366e9f738441d69118f2c18.tar.gz android-node-v8-ce5745bf92f586c58366e9f738441d69118f2c18.tar.bz2 android-node-v8-ce5745bf92f586c58366e9f738441d69118f2c18.zip |
test: improve test-https-server-keep-alive-timeout
The test is flaky under load. These changes greatly improve reliability.
* Use a recurring interval to determine when the test should end rather
than a timer.
* Increase server timeout to 500ms to allow for events being delayed by
system load
Changing to an interval has the added benefit of reducing the test run
time from over 2 seconds to under 1 second.
Fixes: https://github.com/nodejs/node/issues/13307
PR-URL: https://github.com/nodejs/node/pull/13312
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Diffstat (limited to 'src/inspector_socket.h')
0 files changed, 0 insertions, 0 deletions