summaryrefslogtreecommitdiffhomepage
path: root/test/python/restart/longstart.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/python/restart/longstart.py')
-rw-r--r--test/python/restart/longstart.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/python/restart/longstart.py b/test/python/restart/longstart.py
new file mode 100644
index 00000000..777398ac
--- /dev/null
+++ b/test/python/restart/longstart.py
@@ -0,0 +1,10 @@
+import os
+import time
+
+time.sleep(2)
+
+def application(environ, start_response):
+ body = str(os.getpid()).encode()
+
+ start_response('200', [('Content-Length', str(len(body)))])
+ return [body]