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

rnewson pushed a commit to branch flaky-auto-reload-config-test
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 0b307c06f9f06f6c91a698c3ea88c0206589e77a
Author: Robert Newson <[email protected]>
AuthorDate: Fri Feb 27 16:30:19 2026 +0000

    improve flakiness of Auto-reload config test
---
 test/elixir/test/config_test.exs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/elixir/test/config_test.exs b/test/elixir/test/config_test.exs
index d1a4f7d9c..393b22a59 100644
--- a/test/elixir/test/config_test.exs
+++ b/test/elixir/test/config_test.exs
@@ -194,8 +194,9 @@ defmodule ConfigTest do
       delete_config(context, "config", "auto_reload_secs", nil)
     end)
 
-    :timer.sleep(1200)
-    assert get_config(context, "foo", "bar") == "baz"
+    retry_until(fn ->
+      assert get_config(context, "foo", "bar") == "baz"
+    end)
   end
 
   # Those are negative test cases.  The positive cases are implicitly

Reply via email to