summaryrefslogtreecommitdiffhomepage
path: root/test/python/upstreams/1/wsgi.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2020-04-03 01:49:18 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2020-04-03 01:49:18 +0100
commita49023229ec0a404665a711fbf35f6b3bf715825 (patch)
tree6b9050df0ea87e3d7cf4f707dd9a17311df41aa9 /test/python/upstreams/1/wsgi.py
parentd7aa514d6a586115f0b05d5d6465787da1fa9b6c (diff)
downloadunit-a49023229ec0a404665a711fbf35f6b3bf715825.tar.gz
unit-a49023229ec0a404665a711fbf35f6b3bf715825.tar.bz2
Tests: use "return" action in upstream tests.
Diffstat (limited to 'test/python/upstreams/1/wsgi.py')
-rw-r--r--test/python/upstreams/1/wsgi.py8
1 files changed, 0 insertions, 8 deletions
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 []