diff options
Diffstat (limited to 'share/www')
-rw-r--r-- | share/www/script/test/basics.js | 8 | ||||
-rw-r--r-- | share/www/script/test/stats.js | 6 |
2 files changed, 8 insertions, 6 deletions
diff --git a/share/www/script/test/basics.js b/share/www/script/test/basics.js index 4571200e..8adf5a84 100644 --- a/share/www/script/test/basics.js +++ b/share/www/script/test/basics.js @@ -29,10 +29,10 @@ couchTests.basics = function(debug) { if (debug) debugger; // creating a new DB should return Location header - xhr = CouchDB.request("DELETE", "/new-db"); - xhr = CouchDB.request("PUT", "/new-db"); - TEquals("/new-db", - xhr.getResponseHeader("Location").substr(-7), + xhr = CouchDB.request("DELETE", "/test_suite_db"); + xhr = CouchDB.request("PUT", "/test_suite_db"); + TEquals("/test_suite_db", + xhr.getResponseHeader("Location").substr(-14), "should return Location header to newly created document"); TEquals("http://", diff --git a/share/www/script/test/stats.js b/share/www/script/test/stats.js index 267a48ef..dc3edb1f 100644 --- a/share/www/script/test/stats.js +++ b/share/www/script/test/stats.js @@ -56,7 +56,8 @@ couchTests.stats = function(debug) { value: max.toString()}], function () { - var files_open = requestStatsTest("couchdb", "open_databases").current; + var dbs_open = requestStatsTest("couchdb", "open_databases").current; + var files_open = requestStatsTest("couchdb", "open_os_files").current; for(var i=0; i<max+1; i++) { var db = new CouchDB("test_suite_db" + i); db.deleteDb(); @@ -70,7 +71,8 @@ couchTests.stats = function(debug) { var db = new CouchDB("test_suite_db" + i); db.deleteDb(); } - T(files_open == requestStatsTest("couchdb", "open_databases").current); + T(dbs_open == requestStatsTest("couchdb", "open_databases").current); + T(files_open == requestStatsTest("couchdb", "open_os_files").current); }) }, }; |