Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unstable test cases #896

Merged
merged 2 commits into from Mar 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions test/remote_server_control_commands_test.rb
Expand Up @@ -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

Expand Down