Skip to content

Commit 1435fb0

Browse files
committed
Add a little longer timeout value on flaky test
For some reason this test breaks when it runs on an linux environment quite often. There is no specific reason to that, the meilisearch engine running on docker is pretty fast to answer the queries. Closes #178
1 parent 10da90c commit 1435fb0

File tree

2 files changed

+74
-11
lines changed

2 files changed

+74
-11
lines changed

.idea/workspace.xml

Lines changed: 67 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/meilisearch_spec.rb

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@
1717
expect(new_client.healthy?).to be true
1818
end
1919

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-
# new_client = MeiliSearch::Client.new(URL, MASTER_KEY, timeout: 0)
27-
# expect do
28-
# client.indexes
29-
# end.to raise_error(Timeout::Error)
30-
# end
20+
it 'raises a timeout error when setting the timeout option' do
21+
new_client = MeiliSearch::Client.new(URL, MASTER_KEY, timeout: 0.00001)
22+
23+
expect do
24+
new_client.indexes
25+
end.to raise_error(Timeout::Error)
26+
end
3127
end

0 commit comments

Comments
 (0)