couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [10/10] couchdb commit: updated refs/heads/master to 82d2eb1
Date Sat, 23 Apr 2016 10:26:06 GMT
Revive recreate docs test


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/2be26b28
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/2be26b28
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/2be26b28

Branch: refs/heads/master
Commit: 2be26b285244f2a634acb01add7cc051026bafff
Parents: 27b1fda
Author: sebastianro <sebastianro@apache.org>
Authored: Thu Apr 14 19:25:38 2016 +0200
Committer: Jan Lehnardt <jan@apache.org>
Committed: Sat Apr 23 12:25:33 2016 +0200

----------------------------------------------------------------------
 test/javascript/tests/recreate_doc.js | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/2be26b28/test/javascript/tests/recreate_doc.js
----------------------------------------------------------------------
diff --git a/test/javascript/tests/recreate_doc.js b/test/javascript/tests/recreate_doc.js
index 3c70224..ea7916f 100644
--- a/test/javascript/tests/recreate_doc.js
+++ b/test/javascript/tests/recreate_doc.js
@@ -11,9 +11,8 @@
 // the License.
 
 couchTests.recreate_doc = function(debug) {
-  return console.log('TODO: compaction not available on cluster');
   var db_name = get_random_db_name();
-  var db = new CouchDB(db_name, {"X-Couch-Full-Commit":"false"});
+  var db = new CouchDB(db_name, {"X-Couch-Full-Commit":"false"}, {"w": 3});
   db.createDb();
   if (debug) debugger;
 
@@ -96,8 +95,10 @@ couchTests.recreate_doc = function(debug) {
       };
       T(db.save(ret[ret.length-1]).ok);
     }
+/* TODO: if we need and can, re-enable compaction which per se is not available in the cluster
- that way, we at least have all else
     db.compact();
     while(db.info().compact_running) {}
+*/
     return ret;
   }
 
@@ -113,7 +114,8 @@ couchTests.recreate_doc = function(debug) {
     var prev_seq = -1;
     for(var i = 0; i < resp.results.length; i++) {
       row = resp.results[i];
-      T(row.seq > prev_seq, "Unordered _changes feed.");
+      // that won't hold true in clusters
+      //T(row.seq > prev_seq, "Unordered _changes feed.");
       T(docids[row.id] === undefined, "Duplicates in _changes feed.");
       prev_seq = row.seq;
       docids[row.id] = true;
@@ -136,12 +138,14 @@ couchTests.recreate_doc = function(debug) {
   // as it didn't consider the possibility that a compaction
   // might run after the original tree screw up.
 
+/* TODO: if we need and can, re-enable compaction which per se is not available in the cluster
- that way, we at least have all else
   revs = createDoc("b");
   T(db.save(revs[1], {new_edits: false}).ok);
   db.compact();
   while(db.info().compact_running) {}
   T(db.save(revs[revs.length-1]).ok);
   checkChanges();
+*/
 
   // cleanup
   db.deleteDb();


Mime
View raw message