couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1097766 - /couchdb/trunk/test/etap/020-btree-basics.t
Date Fri, 29 Apr 2011 11:00:03 GMT
Author: fdmanana
Date: Fri Apr 29 11:00:03 2011
New Revision: 1097766

URL: http://svn.apache.org/viewvc?rev=1097766&view=rev
Log:
Make sure 020-btree-basics.t test assertion count is deterministic

Modified:
    couchdb/trunk/test/etap/020-btree-basics.t

Modified: couchdb/trunk/test/etap/020-btree-basics.t
URL: http://svn.apache.org/viewvc/couchdb/trunk/test/etap/020-btree-basics.t?rev=1097766&r1=1097765&r2=1097766&view=diff
==============================================================================
--- couchdb/trunk/test/etap/020-btree-basics.t (original)
+++ couchdb/trunk/test/etap/020-btree-basics.t Fri Apr 29 11:00:03 2011
@@ -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),
@@ -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),



Mime
View raw message