[Groonga-commit] droonga/droonga-engine at 6a1b98c [master] Check both class and name of engine nodes

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Apr 30 14:19:29 JST 2015


YUKI Hiroshi	2015-04-30 14:19:29 +0900 (Thu, 30 Apr 2015)

  New Revision: 6a1b98c73612fad2af30857e62c15331a40a3665
  https://github.com/droonga/droonga-engine/commit/6a1b98c73612fad2af30857e62c15331a40a3665

  Message:
    Check both class and name of engine nodes

  Modified files:
    test/unit/test_cluster.rb

  Modified: test/unit/test_cluster.rb (+14 -3)
===================================================================
--- test/unit/test_cluster.rb    2015-04-30 14:15:28 +0900 (f3b6004)
+++ test/unit/test_cluster.rb    2015-04-30 14:19:29 +0900 (4e5acff)
@@ -61,10 +61,15 @@ class ClusterTest < Test::Unit::TestCase
                                "node30:2929/droonga",
                              ])
     assert_equal([
-                   SilentEngineNode,
-                   SilentEngineNode,
+                   {:class => SilentEngineNode,
+                    :name  => "node29:2929/droonga"},
+                   {:class => SilentEngineNode,
+                    :name  => "node30:2929/droonga"},
                  ],
-                 cluster.engine_nodes.collect(&:class))
+                 cluster.engine_nodes.collect do |node|
+                   {:class => node.class,
+                    :name  => node.name}
+                 end)
   end
 
   def test_engine_node_names
@@ -137,4 +142,10 @@ class ClusterTest < Test::Unit::TestCase
                  ],
                  cluster.writable_nodes)
   end
+
+  def test_forward
+  end
+
+  def test_bounce
+  end
 end
-------------- next part --------------
HTML����������������������������...
다운로드 



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