about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-10-28 08:29:53 +0000
committerEric Wong <normalperson@yhbt.net>2010-10-28 08:29:53 +0000
commitb06c6b3ac214bc598d499c994884113d5b106e90 (patch)
tree9fa5edaa2a438a3461a4552d0b7c7adc36aaecaa /t
parentf84f138233be0607b0151a5a28c3f9190ba336a2 (diff)
downloadrainbows-b06c6b3ac214bc598d499c994884113d5b106e90.tar.gz
On busy machines, old workers may not shutdown quickly
enough and may still be processing requests.
Diffstat (limited to 't')
-rw-r--r--t/t0018-reload-restore-settings.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t0018-reload-restore-settings.sh b/t/t0018-reload-restore-settings.sh
index fc61f0c..24ee406 100644
--- a/t/t0018-reload-restore-settings.sh
+++ b/t/t0018-reload-restore-settings.sh
@@ -25,6 +25,10 @@ EOF
         done
 
         grep 'done reloading' $r_err >/dev/null
+        while ! grep reaped $r_err >/dev/null
+        do
+                sleep 1
+        done
 }
 
 t_begin "HTTP request confirms we're on the default model" && {
@@ -41,6 +45,10 @@ t_begin "restore config and reload" && {
         do
                 sleep 1
         done
+        while ! grep reaped $r_err >/dev/null
+        do
+                sleep 1
+        done
         grep 'done reloading' $r_err >/dev/null
 }