diff options
Diffstat (limited to 'share/www')
-rw-r--r-- | share/www/script/test/stats.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/share/www/script/test/stats.js b/share/www/script/test/stats.js index 6e37e741..7c32fdff 100644 --- a/share/www/script/test/stats.js +++ b/share/www/script/test/stats.js @@ -88,6 +88,14 @@ couchTests.stats = function(debug) { var times = []; for(var i = 0; i < max*2; i++) { if(i >= max) { + if(i == max) { + try { + newDb("test_suite_db_" + i, true); + T(0 === 1, "Should have failed to create max+1 db's quickly."); + } catch(e) { + T(e.reason == "all_dbs_active", "All db's should be active."); + } + } var msecs = (new Date()).getTime() - times[i-max]; if(msecs < 1000) { CouchDB.request("GET", "/_sleep?time=" + (msecs+250)); |