summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2020-08-29 00:47:17 +0200
committeraszlig <aszlig@nix.build>2020-08-29 00:55:01 +0200
commitb0ac24ae4114b89e0accc4f30c49b2b9c73bbf22 (patch)
tree86342559e7b8cc9081ebf89b4c24dc7e99f81f0d /pkgs/development/python-modules/rangehttpserver
parent64ad3efd1abd93ceedfadd87ead1c9f601194df3 (diff)
nixos/test-driver: Use guest time when using sleep
With the Perl driver, machine.sleep(N) was doing a sleep on the guest machine instead of the host machine. The new Python test driver however uses time.sleep(), which instead sleeps on the host. While this shouldn't make a difference most of the time, it *does* however make a huge difference if the test machine is loaded and you're sleeping for a minimum duration of eg. an animation. I stumbled on this while porting most of all my tests to the new Python test driver and particularily my video game tests failed on a fairly loaded machine, whereas they don't with the Perl test driver. Switching the sleep() method to sleep on the guest instead of the host fixes this. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions