summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Vatamaniuc <vatamane@apache.org>2020-03-16 18:15:20 -0400
committerNick Vatamaniuc <nickva@users.noreply.github.com>2020-03-16 19:04:34 -0400
commitf28a1ad439ffd1a2df3a715a2b696c0f4886bddf (patch)
treef8c9b0cf9e2b24a554f125bed6253ef71f473d95
parent0cd9c26b201ff626f794058b94ed06e496f5baa3 (diff)
downloadcouchdb-f28a1ad439ffd1a2df3a715a2b696c0f4886bddf.tar.gz
A few minor cleanups in fabric2_db_crud_tests
* Made a silly error building the accumulator list: `[Row, Acc]` -> `[Row | Acc]` * Left some debugging code in `list_dbs_tx_too_old` test The test was supposed to setup only 1 failure in the user callback
-rw-r--r--src/fabric/test/fabric2_db_crud_tests.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fabric/test/fabric2_db_crud_tests.erl b/src/fabric/test/fabric2_db_crud_tests.erl
index c0a65ebd8..205994267 100644
--- a/src/fabric/test/fabric2_db_crud_tests.erl
+++ b/src/fabric/test/fabric2_db_crud_tests.erl
@@ -166,7 +166,7 @@ list_dbs_tx_too_old(_) ->
UserFun = fun(Row, Acc) ->
fabric2_test_util:tx_too_old_raise_in_user_fun(),
- {ok, [Row, Acc]}
+ {ok, [Row | Acc]}
end,
% Get get expected output without any transactions timing out
@@ -181,7 +181,7 @@ list_dbs_tx_too_old(_) ->
?assertEqual(Dbs, fabric2_db:list_dbs(UserFun, [], [])),
% Blow up in user fun
- fabric2_test_util:tx_too_old_setup_errors(2, 2),
+ fabric2_test_util:tx_too_old_setup_errors(1, 0),
?assertEqual(Dbs, fabric2_db:list_dbs(UserFun, [], [])),
% Blow up in user fun after emitting one row
@@ -209,7 +209,7 @@ list_dbs_info_tx_too_old(_) ->
UserFun = fun(Row, Acc) ->
fabric2_test_util:tx_too_old_raise_in_user_fun(),
- {ok, [Row, Acc]}
+ {ok, [Row | Acc]}
end,
% This is the expected return with no tx timeouts