You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2019/03/05 09:25:58 UTC
[couchdb] branch jenkins-add-attachment-test updated: add more w:3
This is an automated email from the ASF dual-hosted git repository.
garren pushed a commit to branch jenkins-add-attachment-test
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/jenkins-add-attachment-test by this push:
new a4476ba add more w:3
a4476ba is described below
commit a4476ba547bc8896e393f64c21adb75e0f4d7dec
Author: Garren Smith <ga...@gmail.com>
AuthorDate: Tue Mar 5 11:25:44 2019 +0200
add more w:3
---
test/elixir/test/attachments.exs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/test/elixir/test/attachments.exs b/test/elixir/test/attachments.exs
index 42c78f7..4cafef8 100644
--- a/test/elixir/test/attachments.exs
+++ b/test/elixir/test/attachments.exs
@@ -124,7 +124,8 @@ defmodule AttachmentsTest do
Couch.put(
"/#{db_name}/bin_doc3/attachment.txt",
body: bin_data,
- headers: ["Content-Type": "text/plain;charset=utf-8"]
+ headers: ["Content-Type": "text/plain;charset=utf-8"],
+ query: {w: 3}
)
assert resp.status_code in [201, 202]
@@ -135,7 +136,7 @@ defmodule AttachmentsTest do
resp = Couch.get("/#{db_name}/bin_doc3/attachment.txt")
assert resp.body == bin_data
- resp = Couch.put("/#{db_name}/bin_doc3/attachment.txt", body: bin_data)
+ resp = Couch.put("/#{db_name}/bin_doc3/attachment.txt", body: bin_data, query: {w: 3})
assert resp.status_code == 409
# non-existent rev