Skip to content

Commit

Permalink
Make sure 020-btree-basics.t test assertion count is deterministic
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1097766 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
fdmanana committed Apr 29, 2011
1 parent dfed3ba commit 5ee419e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/etap/020-btree-basics.t
Expand Up @@ -94,8 +94,7 @@ test_kvs(KeyValues) ->
true ->
ok;
false ->
etap:is(false, true,
"After inserting a value, btree size did not increase.")
etap:bail("After inserting a value, btree size did not increase.")
end,
{BtAcc2, couch_btree:size(BtAcc2)}
end, {Btree3, couch_btree:size(Btree3)}, KeyValues),
Expand All @@ -111,8 +110,7 @@ test_kvs(KeyValues) ->
true ->
ok;
false ->
etap:is(false, true,
"After removing a key, btree size did not decrease.")
etap:bail("After removing a key, btree size did not decrease.")
end,
{BtAcc2, couch_btree:size(BtAcc2)}
end, {Btree4, couch_btree:size(Btree4)}, KeyValues),
Expand Down

0 comments on commit 5ee419e

Please sign in to comment.