diff options
Diffstat (limited to 'share/www/script/test')
-rw-r--r-- | share/www/script/test/stats.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/www/script/test/stats.js b/share/www/script/test/stats.js index 649007dd..b1c7bc02 100644 --- a/share/www/script/test/stats.js +++ b/share/www/script/test/stats.js @@ -56,6 +56,7 @@ couchTests.stats = function(debug) { value: max.toString()}], function () { + var files_open = requestStatsTest("couchdb", "os_files_open").current; for(var i=0; i<max+1; i++) { var db = new CouchDB("test_suite_db" + i); db.deleteDb(); @@ -65,11 +66,11 @@ couchTests.stats = function(debug) { var open_databases = requestStatsTest("couchdb", "open_databases").max; T(max >= open_databases, name); - // not needed for the test but cleanup is nice for(var i=0; i<max+1; i++) { var db = new CouchDB("test_suite_db" + i); db.deleteDb(); } + T(files_open == requestStatsTest("couchdb", "os_files_open").current); }) }, }; |