This is an automated email from the ASF dual-hosted git repository.
davisp pushed a commit to branch prototype/fdb-layer
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/prototype/fdb-layer by this
push:
new 3556834 Fix doc attachment tests
3556834 is described below
commit 35568340115a3587bf7f093395440562cd18af87
Author: Paul J. Davis <[email protected]>
AuthorDate: Mon Feb 10 12:42:22 2020 -0600
Fix doc attachment tests
Attachment names should be binaries
---
src/fabric/test/fabric2_doc_att_tests.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/fabric/test/fabric2_doc_att_tests.erl
b/src/fabric/test/fabric2_doc_att_tests.erl
index 331e1a4..ac531e9 100644
--- a/src/fabric/test/fabric2_doc_att_tests.erl
+++ b/src/fabric/test/fabric2_doc_att_tests.erl
@@ -175,9 +175,9 @@ large_att({Db, _}) ->
AttData = iolist_to_binary([
<<"foobar">> || _ <- lists:seq(1, 60000)
]),
- Att1 = mk_att("long.txt", AttData),
+ Att1 = mk_att(<<"long.txt">>, AttData),
{ok, _} = create_doc(Db, DocId, [Att1]),
- ?assertEqual(#{"long.txt" => AttData}, read_atts(Db, DocId)),
+ ?assertEqual(#{<<"long.txt">> => AttData}, read_atts(Db, DocId)),
{ok, Doc} = fabric2_db:open_doc(Db, DocId),
#doc{atts = [Att2]} = Doc,