Skip to content

Commit 3b8495e

Browse files
committed
Fix a unstable test case and resolve #895
1 parent 7127f3b commit 3b8495e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/distributed_remote_server_control_commands_test.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ def test_info
2828

2929
def test_info_commandstats
3030
target_version "2.5.7" do
31-
r.nodes.each { |n| n.config(:resetstat) }
32-
r.ping # Executed on every node
31+
r.nodes.each do |n|
32+
n.config(:resetstat)
33+
n.config(:get, :port)
34+
end
3335

3436
r.info(:commandstats).each do |info|
35-
assert_equal "1", info["ping"]["calls"]
37+
assert_equal '2', info['config']['calls'] # CONFIG RESETSTAT + CONFIG GET = twice
3638
end
3739
end
3840
end

0 commit comments

Comments
 (0)