You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "nickva (via GitHub)" <gi...@apache.org> on 2025/01/11 20:36:27 UTC
Re: [PR] Fix unstable tests by adding 'retry_until()' [couchdb]
nickva commented on code in PR #5394:
URL: https://github.com/apache/couchdb/pull/5394#discussion_r1912221943
##########
test/elixir/test/search_test.exs:
##########
@@ -71,7 +71,7 @@ defmodule SearchTest do
url = "/#{db_name}/_design/inventory/_search/fruits"
resp = Couch.get(url, query: %{q: "*:*", include_docs: true})
- assert resp.status_code == 200
+ retry_until(fn -> resp.status_code == 200 end)
Review Comment:
Maybe we can do on extra single assert below, just to ensure it's not flapping and once it's hits 200 it stays 200
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org