You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2022/07/19 17:45:09 UTC

[couchdb] branch main updated: Fix the flaky tests for `create_doc()`

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

vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/main by this push:
     new ebbcc7ec2 Fix the flaky tests for `create_doc()`
ebbcc7ec2 is described below

commit ebbcc7ec2a5bb6abf65738ff03f1be9f1be6017c
Author: jiahuili <Ji...@ibm.com>
AuthorDate: Mon Jul 18 15:49:10 2022 -0500

    Fix the flaky tests for `create_doc()`
    
    Add `retry_until()` to `create_doc()` to remove unstable tests.
---
 test/elixir/test/design_docs_test.exs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/elixir/test/design_docs_test.exs b/test/elixir/test/design_docs_test.exs
index 7a6d875c5..09d592b9e 100644
--- a/test/elixir/test/design_docs_test.exs
+++ b/test/elixir/test/design_docs_test.exs
@@ -482,8 +482,7 @@ defmodule DesignDocsTest do
           body: ddoc
         )
       retry_resp.status_code in [201, 202]
+      {:ok, _} = create_doc(db_name, %{_id: "doc1", value: 4})
     end)
-
-    {:ok, _} = create_doc(db_name, %{_id: "doc1", value: 4})
   end
 end