diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2020-02-10 12:42:22 -0600 |
---|---|---|
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | 2020-02-13 15:51:17 -0600 |
commit | 35568340115a3587bf7f093395440562cd18af87 (patch) | |
tree | f470cb5730b8bbf1ee44b9fdeae78765cf63e4f6 | |
parent | 17055f4a4dcbfb269a34d41d8cd7d2b776d0e100 (diff) | |
download | couchdb-35568340115a3587bf7f093395440562cd18af87.tar.gz |
Fix doc attachment tests
Attachment names should be binaries
-rw-r--r-- | src/fabric/test/fabric2_doc_att_tests.erl | 4 |
1 files 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 331e1a4e8..ac531e913 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, |