Skip to content
Snippets Groups Projects
Commit fd2a21a0 authored by Nick Laurenson's avatar Nick Laurenson
Browse files

refactor Speed up stream test

On windows the tests were taking minutes instead of seconds. This is because
it's not possible to sleep for a short period of time on this OS.

Until now the tests were only trying to respect the time interval between two
consecutive packets. A packet was send, a sleep was done, etc... But a thread can't
sleep for an exact period of time. It can only sleep for a minimum period of time.
As a result the pcap was send slower than expected on every OS.

After this commit, the tests are only trying to respect the time interval between
the first and the current packets. A sleep is done when the packets are in advance,
otherwise the packet are just send one after each other.
parent 2672d17c
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment