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

what the heck #99

Merged
merged 1 commit into from
Aug 10, 2023
Merged
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
4 changes: 2 additions & 2 deletions features/step_definitions/redis_auto_failover_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,15 @@
redis_master = TestDaemons::Redis[redis_name].ip_with_port
response = nil
expected_response = ['OK', redis_master]
3.times do |i|
10.times do |i|
client = Beetle::Client.new.configure :auto_delete => true do |config|
config.queue(:echo, :lazy => true, :dead_lettering => true)
config.message(:echo)
end
t1 = Time.now
response = client.rpc(:echo, 'echo')
t2 = Time.now
# puts "OK,#{redis_master} =?= #{response.join(',')} after #{t2-t1}, attempt #{i+1}"
puts "OK,#{redis_master} =?= #{response.join(',')} after #{t2-t1}, attempt #{i+1}"
break if expected_response == response
end
assert_equal expected_response, response
Expand Down