diff options
author | Jay Doane <jay.s.doane@gmail.com> | 2018-12-22 22:12:50 -0800 |
---|---|---|
committer | Jay Doane <jay.s.doane@gmail.com> | 2018-12-22 22:12:50 -0800 |
commit | add9fae9336c0fa84eaafb3f5ed43ea1294ad16f (patch) | |
tree | c24ff12ef90d8193caab4c93fb332afe3aaabaee | |
parent | 90c0a6f9d328f0d0d66af6c90cd320b95762f864 (diff) | |
download | couchdb-add9fae9336c0fa84eaafb3f5ed43ea1294ad16f.tar.gz |
Do not automatically fail tests if quorum conditions unmet
-rw-r--r-- | test/elixir/lib/couch/db_test.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/elixir/lib/couch/db_test.ex b/test/elixir/lib/couch/db_test.ex index efd02f129..899237635 100644 --- a/test/elixir/lib/couch/db_test.ex +++ b/test/elixir/lib/couch/db_test.ex @@ -156,21 +156,21 @@ defmodule Couch.DBTest do def create_db(db_name) do resp = Couch.put("/#{db_name}") - assert resp.status_code == 201 + assert resp.status_code in [201, 202] assert resp.body == %{"ok" => true} {:ok, resp} end def delete_db(db_name) do resp = Couch.delete("/#{db_name}") - assert resp.status_code == 200 + assert resp.status_code in [200, 202] assert resp.body == %{"ok" => true} {:ok, resp} end def create_doc(db_name, body) do resp = Couch.post("/#{db_name}", body: body) - assert resp.status_code == 201 + assert resp.status_code in [201, 202] assert resp.body["ok"] {:ok, resp} end |