about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-14 17:22:15 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-14 17:22:15 -0700
commit966d55b875f714c9debe08a9b9d265204da2a845 (patch)
tree8fddb0822d7151dc335e7497c99165eadd375c73 /test
parent8cd8de4637b5731b4d3ade587307d7241ce99eff (diff)
downloadunicorn-966d55b875f714c9debe08a9b9d265204da2a845.tar.gz
We don't (and won't ever) do log rotation within the process.
That's the job of logrotate and tools like that.  We just
reopen logs like other reasonable daemons out there.
Diffstat (limited to 'test')
-rw-r--r--test/exec/test_exec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/exec/test_exec.rb b/test/exec/test_exec.rb
index 8780da0..888f7c7 100644
--- a/test/exec/test_exec.rb
+++ b/test/exec/test_exec.rb
@@ -370,21 +370,21 @@ end
     tries = DEFAULT_TRIES
     log = File.readlines(rotate.path)
     while (tries -= 1) > 0 &&
-          log.grep(/rotating logs\.\.\./).size < 5
+          log.grep(/reopening logs\.\.\./).size < 5
       sleep DEFAULT_RES
       log = File.readlines(rotate.path)
     end
-    assert_equal 5, log.grep(/rotating logs\.\.\./).size
-    assert_equal 0, log.grep(/done rotating logs/).size
+    assert_equal 5, log.grep(/reopening logs\.\.\./).size
+    assert_equal 0, log.grep(/done reopening logs/).size
 
     tries = DEFAULT_TRIES
     log = File.readlines(COMMON_TMP.path)
-    while (tries -= 1) > 0 && log.grep(/done rotating logs/).size < 5
+    while (tries -= 1) > 0 && log.grep(/done reopening logs/).size < 5
       sleep DEFAULT_RES
       log = File.readlines(COMMON_TMP.path)
     end
-    assert_equal 5, log.grep(/done rotating logs/).size
-    assert_equal 0, log.grep(/rotating logs\.\.\./).size
+    assert_equal 5, log.grep(/done reopening logs/).size
+    assert_equal 0, log.grep(/reopening logs\.\.\./).size
     assert_nothing_raised { Process.kill(:QUIT, pid) }
     status = nil
     assert_nothing_raised { pid, status = Process.waitpid2(pid) }