summaryrefslogtreecommitdiffstats
path: root/test/wpt/tests/common/slow.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/wpt/tests/common/slow.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/wpt/tests/common/slow.py b/test/wpt/tests/common/slow.py
new file mode 100644
index 0000000..9be8aad
--- /dev/null
+++ b/test/wpt/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''