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

jiahuili430 pushed a commit to branch fix-elixir-tests
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit fd4001083a069bf93ed3cd1496665cf4e95f57aa
Author: Jiahui Li <[email protected]>
AuthorDate: Thu Dec 11 14:37:37 2025 -0600

    Fix tests
---
 test/elixir/test/cluster_with_quorum_test.exs | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/test/elixir/test/cluster_with_quorum_test.exs 
b/test/elixir/test/cluster_with_quorum_test.exs
index fc3b28a0b..bdb098705 100644
--- a/test/elixir/test/cluster_with_quorum_test.exs
+++ b/test/elixir/test/cluster_with_quorum_test.exs
@@ -7,14 +7,15 @@ defmodule WithQuorumTest do
   Test CouchDB API in a cluster without quorum.
   """
   @tag :with_db_name
-  test "Creating/Deleting DB should return 201-Created/202-Acepted", context do
+  test "Creating/Deleting DB should return 201-Created/200-OK", context do
     db_name = context[:db_name]
     resp = Couch.put("/#{db_name}")
     msg = "Should return 201-Created"
     assert resp.status_code in [201, 202], msg
     resp = Couch.delete("/#{db_name}")
-    msg = "Should return 202-Acepted"
-    assert resp.status_code == 202, msg
+    msg = "Should return 200-OK"
+    IO.inspect(resp, label: "resp")
+    assert resp.status_code == 200, msg
   end
 
   @tag :with_db_name
@@ -45,7 +46,7 @@ defmodule WithQuorumTest do
   end
 
   @tag :with_db_name
-  test "Creating-Updating/Deleting doc with overriden quorum should return 
202-Acepted/200-OK",
+  test "Creating-Updating/Deleting doc with overridden quorum should return 
202-Accepted/200-OK",
        context do
     db_name = context[:db_name]
     Couch.put("/#{db_name}")
@@ -57,7 +58,7 @@ defmodule WithQuorumTest do
         body: %{:_id => "0", :a => 1}
       )
 
-    msg = "Should return 202-Acepted"
+    msg = "Should return 202-Accepted"
     assert resp.status_code == 202, msg
 
     resp = Couch.get("/#{context[:db_name]}/0")
@@ -70,7 +71,7 @@ defmodule WithQuorumTest do
         body: %{:_id => "0", :_rev => rev, :a => 2}
       )
 
-    msg = "Should return 202-Acepted"
+    msg = "Should return 202-Accepted"
     assert resp.status_code == 202, msg
 
     resp = Couch.get("/#{context[:db_name]}/0")
@@ -114,12 +115,12 @@ defmodule WithQuorumTest do
   end
 
   @tag :with_db_name
-  test "Bulk docs overriden quorum should return 202-Acepted", context do
+  test "Bulk docs overridden quorum should return 202-Accepted", context do
     db_name = context[:db_name]
     Couch.put("/#{db_name}")
     docs = create_docs(@doc_range)
     resp = Couch.post("/#{db_name}/_bulk_docs", query: %{:w => 3}, body: 
%{docs: docs})
-    msg = "Should return 202-Acepted"
+    msg = "Should return 202-Accepted"
     assert resp.status_code == 202, msg
 
     Couch.delete("/#{db_name}")
@@ -152,7 +153,7 @@ defmodule WithQuorumTest do
   end
 
   @tag :with_db_name
-  test "Attachments overriden quorum should return 202-Acepted", context do
+  test "Attachments overridden quorum should return 202-Accepted", context do
     db_name = context[:db_name]
     Couch.put("/#{db_name}")
     resp = Couch.post("/#{context[:db_name]}", body: %{:_id => "0"})
@@ -166,7 +167,7 @@ defmodule WithQuorumTest do
         headers: ["Content-Type": "text/plain;charset=utf-8"]
       )
 
-    msg = "Should return 202-Acepted"
+    msg = "Should return 202-Accepted"
     assert resp.status_code == 202, msg
 
     rev = resp.body["rev"]

Reply via email to