couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [39/50] couchdb commit: updated refs/heads/2876-js-tests-merged-squashed to f44e15f
Date Wed, 16 Dec 2015 19:52:34 GMT
JS test: update view_offsets.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/3a16cf60
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/3a16cf60
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/3a16cf60

Branch: refs/heads/2876-js-tests-merged-squashed
Commit: 3a16cf606934a7f4298d3305f0e5f1e61c529d2c
Parents: 6e5f191
Author: Jan Lehnardt <jan@apache.org>
Authored: Wed Dec 16 20:49:34 2015 +0100
Committer: Jan Lehnardt <jan@apache.org>
Committed: Wed Dec 16 20:49:34 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/3a16cf60/test/javascript/tests/view_offsets.js
----------------------------------------------------------------------
diff --git a/test/javascript/tests/view_offsets.js b/test/javascript/tests/view_offsets.js
index 464a1ae..5b286c4 100644
--- a/test/javascript/tests/view_offsets.js
+++ b/test/javascript/tests/view_offsets.js
@@ -13,8 +13,8 @@
 couchTests.view_offsets = function(debug) {
   if (debug) debugger;
 
-  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();
 
   var designDoc = {
@@ -104,5 +104,8 @@ couchTests.view_offsets = function(debug) {
   };
 
   for(var i = 0; i < 15; i++) T(runTest());
+
+  // cleanup
+  db.deleteDb();
 }
 


Mime
View raw message