diff options
author | Damien F. Katz <damien@apache.org> | 2009-02-26 21:01:24 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2009-02-26 21:01:24 +0000 |
commit | 44a1c6606cf06d78ca82349c8b1cf11734bb0808 (patch) | |
tree | b4ba24464bdaf8767d7517a285980ef2a2c7833d /share/www | |
parent | 3eb02e96bc134806a7b432b4002708af90432d33 (diff) |
Fix and test for file descriptor leaks
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748299 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-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); }) }, }; |