[Groonga-commit] droonga/fluent-plugin-droonga at a525d4d [master] Remove needless code just for test

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Feb 14 12:59:50 JST 2014


Kouhei Sutou	2014-02-14 12:59:50 +0900 (Fri, 14 Feb 2014)

  New Revision: a525d4dea4fb38d3f23577349cbfc890f410a550
  https://github.com/droonga/fluent-plugin-droonga/commit/a525d4dea4fb38d3f23577349cbfc890f410a550

  Message:
    Remove needless code just for test

  Modified files:
    lib/fluent/plugin/out_droonga.rb
    test/unit/test_output.rb

  Modified: lib/fluent/plugin/out_droonga.rb (+1 -3)
===================================================================
--- lib/fluent/plugin/out_droonga.rb    2014-02-14 12:56:07 +0900 (a311a55)
+++ lib/fluent/plugin/out_droonga.rb    2014-02-14 12:59:50 +0900 (2af61bd)
@@ -41,9 +41,7 @@ module Fluent
 
     def shutdown
       @engine.shutdown
-      if @catalog_observer
-        @catalog_observer.stop
-      end
+      @catalog_observer.stop
       super
     end
 

  Modified: test/unit/test_output.rb (+4 -0)
===================================================================
--- test/unit/test_output.rb    2014-02-14 12:56:07 +0900 (97ae5fa)
+++ test/unit/test_output.rb    2014-02-14 12:59:50 +0900 (2dc99c6)
@@ -60,6 +60,10 @@ module OutputStub
       @engine = Engine.new(@response)
     end
 
+    def shutdown
+      @engine.shutdown
+    end
+
     def create_logger(tag, options)
       Logger.new(tag, options)
     end
-------------- next part --------------
HTML����������������������������...
Download 



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