JS test: update view_collation.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/1a72af4e Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/1a72af4e Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/1a72af4e Branch: refs/heads/2876-js-tests-merged-squashed Commit: 1a72af4eb57aed16bd1611749d30829a3349fc0a Parents: 6cd7e97 Author: Jan Lehnardt <[email protected]> Authored: Wed Dec 16 20:49:33 2015 +0100 Committer: Jan Lehnardt <[email protected]> Committed: Wed Dec 16 20:49:33 2015 +0100 ---------------------------------------------------------------------- test/javascript/tests/view_collation.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/1a72af4e/test/javascript/tests/view_collation.js ---------------------------------------------------------------------- diff --git a/test/javascript/tests/view_collation.js b/test/javascript/tests/view_collation.js index b01a5c5..51e74ff 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(); };
