summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2015-12-16 20:49:33 +0100
committerJan Lehnardt <jan@apache.org>2015-12-16 20:49:33 +0100
commit1a72af4eb57aed16bd1611749d30829a3349fc0a (patch)
treee43c759e344b64ba635c89e3eb8e38f32467b5fe
parent6cd7e97f5c9415cf0c19c07be1d4d87174c9edea (diff)
downloadcouchdb-1a72af4eb57aed16bd1611749d30829a3349fc0a.tar.gz
JS test: update view_collation.js for 2.0
-rw-r--r--test/javascript/tests/view_collation.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/javascript/tests/view_collation.js b/test/javascript/tests/view_collation.js
index b01a5c506..51e74ff9e 100644
--- a/test/javascript/tests/view_collation.js
+++ b/test/javascript/tests/view_collation.js
@@ -11,8 +11,8 @@
// the License.
couchTests.view_collation = 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;
@@ -113,4 +113,7 @@ couchTests.view_collation = function(debug) {
endkey : "b", endkey_docid: "11",
inclusive_end:false}).rows;
T(rows[rows.length-1].key == "b");
+
+ // cleanup
+ db.deleteDb();
};