diff --git a/test/distributed_remote_server_control_commands_test.rb b/test/distributed_remote_server_control_commands_test.rb index 8947007e7..c6c4778de 100644 --- a/test/distributed_remote_server_control_commands_test.rb +++ b/test/distributed_remote_server_control_commands_test.rb @@ -28,11 +28,13 @@ def test_info def test_info_commandstats target_version "2.5.7" do - r.nodes.each { |n| n.config(:resetstat) } - r.ping # Executed on every node + r.nodes.each do |n| + n.config(:resetstat) + n.config(:get, :port) + end r.info(:commandstats).each do |info| - assert_equal "1", info["ping"]["calls"] + assert_equal '2', info['config']['calls'] # CONFIG RESETSTAT + CONFIG GET = twice end end end diff --git a/test/remote_server_control_commands_test.rb b/test/remote_server_control_commands_test.rb index a9749a506..0a9560203 100644 --- a/test/remote_server_control_commands_test.rb +++ b/test/remote_server_control_commands_test.rb @@ -27,10 +27,10 @@ def test_info def test_info_commandstats target_version "2.5.7" do r.config(:resetstat) - r.ping + r.config(:get, :port) result = r.info(:commandstats) - assert_equal "1", result["ping"]["calls"] + assert_equal '2', result['config']['calls'] end end