summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorjiahuili <Jiahui.Li@ibm.com>2022-07-18 15:49:10 -0500
committerNick Vatamaniuc <nickva@users.noreply.github.com>2022-07-19 13:45:03 -0400
commitebbcc7ec2a5bb6abf65738ff03f1be9f1be6017c (patch)
tree34e8ca0c584eeb8d07ac0dc5e4da2cada6f3c6ff /test
parentc71239bf0b242cbe46d1d1a8738a8ec4e0f7215b (diff)
downloadcouchdb-ebbcc7ec2a5bb6abf65738ff03f1be9f1be6017c.tar.gz
Fix the flaky tests for `create_doc()`
Add `retry_until()` to `create_doc()` to remove unstable tests.
Diffstat (limited to 'test')
-rw-r--r--test/elixir/test/design_docs_test.exs3
1 files changed, 1 insertions, 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