Skip to content

Commit

Permalink
Fix a unstable test case and resolve #895
Browse files Browse the repository at this point in the history
  • Loading branch information
supercaracal committed Mar 28, 2020
1 parent 7127f3b commit 3b8495e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/distributed_remote_server_control_commands_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit 3b8495e

Please sign in to comment.