[Groonga-commit] droonga/fluent-plugin-droonga at 01ae3e2 [master] Update expected success result of watch commands

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Jan 29 20:49:10 JST 2014


YUKI Hiroshi	2014-01-29 20:49:10 +0900 (Wed, 29 Jan 2014)

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

  Message:
    Update expected success result of watch commands

  Modified files:
    test/unit/plugin/handler/test_watch.rb

  Modified: test/unit/plugin/handler/test_watch.rb (+6 -4)
===================================================================
--- test/unit/plugin/handler/test_watch.rb    2014-01-29 20:44:28 +0900 (3d75513)
+++ test/unit/plugin/handler/test_watch.rb    2014-01-29 20:49:10 +0900 (6735625)
@@ -20,6 +20,8 @@ require "droonga/plugin/handler/watch"
 class WatchHandlerTest < Test::Unit::TestCase
   include WatchHelper
 
+  SUCCESS_RESULT = { "success" => true }
+
   def setup
     setup_database
     setup_schema
@@ -70,7 +72,7 @@ class WatchHandlerTest < Test::Unit::TestCase
         "subscriber" => "localhost"
       }
       process(:subscribe, request, "from" => "localhost:23004/output")
-      assert_equal([[true]], @messenger.values)
+      assert_equal([SUCCESS_RESULT], @messenger.values)
 
       assert_equal(
         ["localhost:23004/output"],
@@ -116,7 +118,7 @@ class WatchHandlerTest < Test::Unit::TestCase
         "subscriber" => "localhost"
       }
       process(:unsubscribe, request)
-      assert_equal([[true]], @messenger.values)
+      assert_equal([SUCCESS_RESULT], @messenger.values)
     end
 
     private
@@ -127,7 +129,7 @@ class WatchHandlerTest < Test::Unit::TestCase
         "subscriber" => "localhost"
       }
       process(:subscribe, request)
-      assert_equal([[true]], @messenger.values)
+      assert_equal([SUCCESS_RESULT], @messenger.values)
       @messenger.values.clear
     end
   end
@@ -178,7 +180,7 @@ class WatchHandlerTest < Test::Unit::TestCase
         "subscriber" => "localhost"
       }
       process(:subscribe, request)
-      assert_equal([[true]], @messenger.values)
+      assert_equal([SUCCESS_RESULT], @messenger.values)
     end
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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