Skip to content

Commit 41f34e2

Browse files
author
Thomas Dalous
committed
fix: tests
1 parent 53de2fa commit 41f34e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/algolia/unit/retry_strategy_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ def test_failure_when_all_hosts_are_down
8383
end
8484

8585
assert_includes exception.message, 'Unreachable hosts. Last error for 1.0.0.0: SSL_connect'
86-
assert_equal exception.errors, [
87-
{:host=>"0.0.0.0", :error=>"SSL_connect SYSCALL returned=5 errno=0 peeraddr=127.0.0.1:443 state=error: certificate verify failed"},
88-
{: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"}
89-
]
86+
assert_equal exception.errors.size, 2
87+
assert_equal exception.errors.last.keys, [:host, :error]
88+
assert_equal exception.errors.first[:host], '0.0.0.0'
89+
assert_equal exception.errors.last[:host], '1.0.0.0'
9090
end
9191
end
9292

0 commit comments

Comments
 (0)