We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 197303a commit 1b84db7Copy full SHA for 1b84db7
spec/unit/outputs/elasticsearch/http_client/pool_spec.rb
@@ -331,7 +331,8 @@ def body
331
332
expect(subject.url_meta(u)[:state]).to eql(:dead)
333
sleep subject.resurrect_delay + 1
334
- expect(subject.url_meta(u)[:state]).to eql(:alive)
+ # try a few times with exponential backoff as timing is not 100% guaranteed during CI execution.
335
+ try(10) { expect(subject.url_meta(u)[:state]).to eql(:alive) }
336
end
337
338
0 commit comments