summaryrefslogtreecommitdiffhomepage
path: root/test/python
diff options
context:
space:
mode:
Diffstat (limited to 'test/python')
-rw-r--r--test/python/delayed/wsgi.py1
-rw-r--r--test/python/upstreams/0/wsgi.py8
-rw-r--r--test/python/upstreams/1/wsgi.py8
-rw-r--r--test/python/upstreams/2/wsgi.py8
4 files changed, 1 insertions, 24 deletions
diff --git a/test/python/delayed/wsgi.py b/test/python/delayed/wsgi.py
index d25e2765..3eb5a6f8 100644
--- a/test/python/delayed/wsgi.py
+++ b/test/python/delayed/wsgi.py
@@ -11,6 +11,7 @@ def application(environ, start_response):
write = start_response('200', [('Content-Length', str(len(body)))])
if not body:
+ time.sleep(delay)
return []
step = int(len(body) / parts)
diff --git a/test/python/upstreams/0/wsgi.py b/test/python/upstreams/0/wsgi.py
deleted file mode 100644
index 2c88979b..00000000
--- a/test/python/upstreams/0/wsgi.py
+++ /dev/null
@@ -1,8 +0,0 @@
-import time
-
-def application(env, start_response):
- delay = int(env.get('HTTP_X_DELAY', 0))
-
- start_response('200', [('Content-Length', '0'), ('X-Upstream', '0')])
- time.sleep(delay)
- return []
diff --git a/test/python/upstreams/1/wsgi.py b/test/python/upstreams/1/wsgi.py
deleted file mode 100644
index 5077bdb1..00000000
--- a/test/python/upstreams/1/wsgi.py
+++ /dev/null
@@ -1,8 +0,0 @@
-import time
-
-def application(env, start_response):
- delay = int(env.get('HTTP_X_DELAY', 0))
-
- start_response('200', [('Content-Length', '0'), ('X-Upstream', '1')])
- time.sleep(delay)
- return []
diff --git a/test/python/upstreams/2/wsgi.py b/test/python/upstreams/2/wsgi.py
deleted file mode 100644
index bb0ce797..00000000
--- a/test/python/upstreams/2/wsgi.py
+++ /dev/null
@@ -1,8 +0,0 @@
-import time
-
-def application(env, start_response):
- delay = int(env.get('HTTP_X_DELAY', 0))
-
- start_response('200', [('Content-Length', '0'), ('X-Upstream', '2')])
- time.sleep(delay)
- return []