You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2020/02/12 23:17:24 UTC
[couchdb] 08/13: Fix doc attachment tests
This is an automated email from the ASF dual-hosted git repository.
davisp pushed a commit to branch prototype/fdb-layer-get-dbs-info
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 1cfd2a5d0e27ad5fe985c9b454f6e0c0c1c831f9
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Mon Feb 10 12:42:22 2020 -0600
Fix doc attachment tests
---
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,