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

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


The following commit(s) were added to refs/heads/reshard by this push:
     new df0cfe0  [fixup|elixir tests] allow delete db to accept a 404
df0cfe0 is described below

commit df0cfe0ed38aedafea24cfeca16ae2e3009259b9
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Thu Mar 14 13:11:38 2019 -0400

    [fixup|elixir tests] allow delete db to accept a 404
    
    In case db was deleted as part of the test
---
 test/elixir/lib/couch/db_test.ex | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/elixir/lib/couch/db_test.ex b/test/elixir/lib/couch/db_test.ex
index 7a08aae..d88478a 100644
--- a/test/elixir/lib/couch/db_test.ex
+++ b/test/elixir/lib/couch/db_test.ex
@@ -171,8 +171,7 @@ defmodule Couch.DBTest do
 
   def delete_db(db_name) do
     resp = Couch.delete("/#{db_name}")
-    assert resp.status_code in [200, 202]
-    assert resp.body == %{"ok" => true}
+    assert resp.status_code in [200, 202, 404]
     {:ok, resp}
   end
 

Reply via email to