couchdb-commits mailing list archives

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

Branch: refs/heads/2876-js-tests-merged-squashed
Commit: 7833a7f13a463052a9ebe04023b272b21ca4ce0b
Parents: 5641957
Author: Jan Lehnardt <jan@apache.org>
Authored: Wed Dec 16 20:49:33 2015 +0100
Committer: Jan Lehnardt <jan@apache.org>
Committed: Wed Dec 16 20:49:33 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/7833a7f1/test/javascript/tests/utf8.js
----------------------------------------------------------------------
diff --git a/test/javascript/tests/utf8.js b/test/javascript/tests/utf8.js
index 04f6313..a724580 100644
--- a/test/javascript/tests/utf8.js
+++ b/test/javascript/tests/utf8.js
@@ -11,8 +11,8 @@
 // the License.
 
 couchTests.utf8 = 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;
 
@@ -39,4 +39,7 @@ couchTests.utf8 = function(debug) {
   for (var i=0; i<texts.length; i++) {
     T(rows[i].value == texts[i]);
   }
+
+  // cleanup
+  db.deleteDb();
 };


Mime
View raw message