Navigation Menu

Skip to content

Commit

Permalink
Check both class and name of engine nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 30, 2015
1 parent f7ab57f commit 6a1b98c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions test/unit/test_cluster.rb
Expand Up @@ -61,10 +61,15 @@ def test_engine_nodes
"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
Expand Down Expand Up @@ -137,4 +142,10 @@ def test_writable_nodes
],
cluster.writable_nodes)
end

def test_forward
end

def test_bounce
end
end

0 comments on commit 6a1b98c

Please sign in to comment.