summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2011-10-06 10:39:21 +0100
committerRobert Newson <rnewson@apache.org>2011-10-06 10:39:21 +0100
commit5b558c81ed9709fb286a6821e9ae6d6478012c2c (patch)
treedf5689ac2ecfda77d4129a4c814dc21f68b93653 /share/www
parente6c0fc955ea2be0fd3c4e894fd0c7cc87202c5a5 (diff)
Remove SpiderMonkey 1.8.5 compatibility
This commit reverts 1.8.5 compatibility including the corresponding couchjs paren hack as this leads to significant breakage in existing functions.
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/couch_test_runner.js15
1 files changed, 1 insertions, 14 deletions
diff --git a/share/www/script/couch_test_runner.js b/share/www/script/couch_test_runner.js
index e14640b6..55a6533f 100644
--- a/share/www/script/couch_test_runner.js
+++ b/share/www/script/couch_test_runner.js
@@ -414,23 +414,10 @@ function waitForSuccess(fun, tag) {
function waitForRestart() {
var waiting = true;
- // Wait for the server to go down but don't
- // wait too long because we might miss the
- // unavailable period.
- var count = 25;
- while (waiting && count > 0) {
- count--;
- try {
- CouchDB.request("GET", "/");
- } catch(e) {
- waiting = false;
- }
- }
- // Wait for it to come back up
- waiting = true;
while (waiting) {
try {
CouchDB.request("GET", "/");
+ CouchDB.request("GET", "/");
waiting = false;
} catch(e) {
// the request will fail until restart completes