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:02 UTC

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

JS test: update reduce_false_temp.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/880dd306
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/880dd306
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/880dd306

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

----------------------------------------------------------------------
 test/javascript/tests/reduce_false_temp.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/880dd306/test/javascript/tests/reduce_false_temp.js
----------------------------------------------------------------------
diff --git a/test/javascript/tests/reduce_false_temp.js b/test/javascript/tests/reduce_false_temp.js
index d45f05b..51b23bd 100644
--- a/test/javascript/tests/reduce_false_temp.js
+++ b/test/javascript/tests/reduce_false_temp.js
@@ -11,8 +11,8 @@
 // the License.
 
 couchTests.reduce_false_temp = function(debug) {
-  var db = new CouchDB("test_suite_db", {"X-Couch-Full-Commit":"false"});
-  db.deleteDb();
+  var db_name = get_random_db_name();
+  var db = new CouchDB(db_name, {"X-Couch-Full-Commit":"false"});
   db.createDb();
   if (debug) debugger;
 
@@ -34,4 +34,7 @@ couchTests.reduce_false_temp = function(debug) {
   for(var i=0; i<5; i++) {
     T(res.rows[i].value == i+1);
   }
+
+  // cleanup
+  db.deleteDb();
 };