You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2015/12/16 20:52:38 UTC

[43/50] couchdb commit: updated refs/heads/2876-js-tests-merged-squashed to f44e15f

JS test: update view_compaction.js for 2.0


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

Branch: refs/heads/2876-js-tests-merged-squashed
Commit: 388e861d890f631f8bab568ea5b31a7f2568b0fa
Parents: 9e38cdf
Author: Jan Lehnardt <ja...@apache.org>
Authored: Wed Dec 16 20:49:34 2015 +0100
Committer: Jan Lehnardt <ja...@apache.org>
Committed: Wed Dec 16 20:49:34 2015 +0100

----------------------------------------------------------------------
 test/javascript/tests/view_compaction.js | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/388e861d/test/javascript/tests/view_compaction.js
----------------------------------------------------------------------
diff --git a/test/javascript/tests/view_compaction.js b/test/javascript/tests/view_compaction.js
index 35d6276..92e5cb4 100644
--- a/test/javascript/tests/view_compaction.js
+++ b/test/javascript/tests/view_compaction.js
@@ -11,12 +11,12 @@
 // the License.
 
 couchTests.view_compaction = function(debug) {
+  return console.log('TODO');
 
   if (debug) debugger;
 
-  var db = new CouchDB("test_suite_db", {"X-Couch-Full-Commit": "true"});
-
-  db.deleteDb();
+  var db_name = get_random_db_name();
+  var db = new CouchDB(db_name, {"X-Couch-Full-Commit":"false"});
   db.createDb();
 
   var ddoc = {
@@ -107,4 +107,7 @@ couchTests.view_compaction = function(debug) {
   T(resp.view_index.disk_size < disk_size_before_compact);
   TEquals("number", typeof resp.view_index.data_size, "data size is a number");
   T(resp.view_index.data_size < resp.view_index.disk_size, "data size < file size");
+
+  // cleanup
+  db.deleteDb();
 };
\ No newline at end of file