You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ei...@apache.org on 2020/02/11 16:32:17 UTC
[couchdb] 02/04: Fix invalid json object in fabric2_doc_crud test
This is an automated email from the ASF dual-hosted git repository.
eiri pushed a commit to branch prototype/flattened-doc-storage
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 3863f4622a047e9eaccc580226f569c0b9445d28
Author: Eric Avdey <ei...@eiri.ca>
AuthorDate: Mon Feb 10 17:33:28 2020 -0400
Fix invalid json object in fabric2_doc_crud test
---
src/fabric/test/fabric2_doc_crud_tests.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/fabric/test/fabric2_doc_crud_tests.erl b/src/fabric/test/fabric2_doc_crud_tests.erl
index 184eb4a..d50c554 100644
--- a/src/fabric/test/fabric2_doc_crud_tests.erl
+++ b/src/fabric/test/fabric2_doc_crud_tests.erl
@@ -894,7 +894,7 @@ local_doc_with_previous_encoding({Db, _}) ->
before_doc_update_skips_local_docs({Db0, _}) ->
BduFun = fun(Doc, _, _) ->
- Doc#doc{body = {[<<"bdu_was_here">>, true]}}
+ Doc#doc{body = {[{<<"bdu_was_here">>, true}]}}
end,
Db = Db0#{before_doc_update := BduFun},
@@ -909,4 +909,4 @@ before_doc_update_skips_local_docs({Db0, _}) ->
{ok, Doc2} = fabric2_db:open_doc(Db, Doc1#doc.id),
?assertEqual({[]}, LDoc2#doc.body),
- ?assertEqual({[<<"bdu_was_here">>, true]}, Doc2#doc.body).
+ ?assertEqual({[{<<"bdu_was_here">>, true}]}, Doc2#doc.body).