diff options
Diffstat (limited to 'testing/web-platform/tests/common/slow.py')
-rw-r--r-- | testing/web-platform/tests/common/slow.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/web-platform/tests/common/slow.py b/testing/web-platform/tests/common/slow.py new file mode 100644 index 0000000000..9be8aadf35 --- /dev/null +++ b/testing/web-platform/tests/common/slow.py @@ -0,0 +1,6 @@ +import time + +def main(request, response): + delay = float(request.GET.first(b"delay", 2000)) / 1000 + time.sleep(delay) + return 200, [], b'' |