Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Dalous committed Jul 24, 2024
1 parent 53de2fa commit 41f34e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/algolia/unit/retry_strategy_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ def test_failure_when_all_hosts_are_down
end

assert_includes exception.message, 'Unreachable hosts. Last error for 1.0.0.0: SSL_connect'
assert_equal exception.errors, [
{:host=>"0.0.0.0", :error=>"SSL_connect SYSCALL returned=5 errno=0 peeraddr=127.0.0.1:443 state=error: certificate verify failed"},
{:host=>"1.0.0.0", :error=>"SSL_connect returned=1 errno=0 peeraddr=1.0.0.0:443 state=error: ssl/tls alert handshake failure"}
]
assert_equal exception.errors.size, 2
assert_equal exception.errors.last.keys, [:host, :error]
assert_equal exception.errors.first[:host], '0.0.0.0'
assert_equal exception.errors.last[:host], '1.0.0.0'
end
end

Expand Down

0 comments on commit 41f34e2

Please sign in to comment.