This is an automated email from the ASF dual-hosted git repository.

jan pushed a commit to branch pouchdb-server
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 34f2a0454e37f24bc88901b480fe0883e8bbb42d
Author: Alba Herrerias <[email protected]>
AuthorDate: Tue Jul 15 14:57:03 2025 +0100

    feat: modify `reset_db` test function
---
 test/elixir/lib/couch/dbtest.ex | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/test/elixir/lib/couch/dbtest.ex b/test/elixir/lib/couch/dbtest.ex
index 8a1a32449..d448a0d21 100644
--- a/test/elixir/lib/couch/dbtest.ex
+++ b/test/elixir/lib/couch/dbtest.ex
@@ -179,9 +179,12 @@ defmodule Couch.DBTest do
     {:ok, resp}
   end
 
-  def reset_db(db_name, opts \\ []) do
+  def reset_db(db_name, _opts \\ []) do
     delete_db(db_name)
-    create_db(db_name, opts)
+    retry_until(fn ->
+      resp = Couch.get("/#{db_name}")
+      assert resp.status_code == 200
+    end)
   end
 
   # Use this function when testing authentication after resetting (re-creating)

Reply via email to