[Groonga-commit] ranguba/rroonga at a801d81 [master] test: add code for testing rotate threshold size

Back to archive index

Kouhei Sutou null+****@clear*****
Thu May 14 16:48:40 JST 2015


Kouhei Sutou	2015-05-14 16:48:40 +0900 (Thu, 14 May 2015)

  New Revision: a801d81aedf98949c99d69708c0531bcc0a6ceda
  https://github.com/ranguba/rroonga/commit/a801d81aedf98949c99d69708c0531bcc0a6ceda

  Message:
    test: add code for testing rotate threshold size

  Modified files:
    test/test-logger.rb

  Modified: test/test-logger.rb (+3 -0)
===================================================================
--- test/test-logger.rb    2015-05-14 16:34:19 +0900 (7e2d57d)
+++ test/test-logger.rb    2015-05-14 16:48:40 +0900 (6230fb0)
@@ -127,5 +127,8 @@ class LoggerTest < Test::Unit::TestCase
     Groonga::Logger.unregister
     Groonga::Logger.path = @log_path.to_s
     Groonga::Logger.rotate_threshold_size = 10
+    assert_equal([], Dir.glob("#{@log_path}.*"))
+    Groonga::Logger.log("Hello")
+    assert_not_equal([], Dir.glob("#{@log_path}.*"))
   end
 end
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index