about summary refs log tree commit homepage
path: root/t/heartbeat-timeout.ru
diff options
context:
space:
mode:
Diffstat (limited to 't/heartbeat-timeout.ru')
-rw-r--r--t/heartbeat-timeout.ru5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/heartbeat-timeout.ru b/t/heartbeat-timeout.ru
index fff0c40..471bddc 100644
--- a/t/heartbeat-timeout.ru
+++ b/t/heartbeat-timeout.ru
@@ -4,8 +4,9 @@ headers = { 'Content-Type' => 'text/plain' }
 run lambda { |env|
   case env['PATH_INFO']
   when "/block-forever"
-    # this should block forever (or until somebody opens it for reading)
-    File.open(fifo, "rb") { |fp| fp.syswrite("NEVER\n") }
+    # one of these should block forever
+    Process.kill(:STOP, $$)
+    ::File.open(fifo, "rb") { |fp| fp.syswrite("NEVER\n") }
     [ 500, headers, [ "Should never get here\n" ] ]
   else
     [ 200, headers, [ "#$$\n" ] ]