Skip to content

Commit 2d1aa62

Browse files
bors[bot]curquiza
andauthored
Merge #179
179: Disable test that leads to random failure r=bidoubiwa a=curquiza Fixes #168 Co-authored-by: Clémentine Urquizar <[email protected]>
2 parents d972e58 + 1a5ab2b commit 2d1aa62

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

spec/meilisearch_spec.rb

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,19 @@
1313
end
1414

1515
it 'allows to set a custom timeout and max_retries' do
16-
client = MeiliSearch::Client.new($URL, $MASTER_KEY, timeout: 0, max_retries: 2)
17-
expect do
18-
client.indexes
19-
end.to raise_error(Timeout::Error)
16+
client = MeiliSearch::Client.new($URL, $MASTER_KEY, timeout: 20, max_retries: 2)
17+
expect(client.healthy?).to be true
2018
end
19+
20+
# Commented test due to random failure.
21+
# See the related issues:
22+
# - https://github.com/meilisearch/meilisearch-ruby/issues/168
23+
# - https://github.com/meilisearch/meilisearch-ruby/issues/178
24+
#
25+
# it 'raises a timeout error when setting the timeout option' do
26+
# client = MeiliSearch::Client.new($URL, $MASTER_KEY, timeout: 0)
27+
# expect do
28+
# client.indexes
29+
# end.to raise_error(Timeout::Error)
30+
# end
2131
end

0 commit comments

Comments
 (0)