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

davisp pushed a commit to branch prototype/fdb-layer-fix-attachment-test
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit b50f17df0938f8646785fe80c700abb9875828eb
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,

Reply via email to