summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2009-03-24 11:32:57 +0000
committerJan Lehnardt <jan@apache.org>2009-03-24 11:32:57 +0000
commit6f1887acf616c5f0afab8178b02bf26b10078b27 (patch)
treee6dbc11abf0d156415ca750fef00122d5c17af9f
parentd9b157680364cb182546e6578d75c7a382f3ec8f (diff)
fix unstable stats test; the open_os_files counter needs a separate test
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@757744 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--share/www/script/test/stats.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/www/script/test/stats.js b/share/www/script/test/stats.js
index 6d56a81b..267a48ef 100644
--- a/share/www/script/test/stats.js
+++ b/share/www/script/test/stats.js
@@ -56,21 +56,21 @@ couchTests.stats = function(debug) {
value: max.toString()}],
function () {
- var files_open = requestStatsTest("couchdb", "open_os_files").current;
+ var files_open = requestStatsTest("couchdb", "open_databases").current;
for(var i=0; i<max+1; i++) {
var db = new CouchDB("test_suite_db" + i);
db.deleteDb();
db.createDb();
}
- var open_databases = requestStatsTest("couchdb", "open_os_files").max;
+ var open_databases = requestStatsTest("couchdb", "open_databases").max;
T(open_databases > 0 && max >= open_databases, name);
for(var i=0; i<max+1; i++) {
var db = new CouchDB("test_suite_db" + i);
db.deleteDb();
}
- T(files_open == requestStatsTest("couchdb", "open_os_files").current);
+ T(files_open == requestStatsTest("couchdb", "open_databases").current);
})
},
};