couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wendall Cada (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-1762) Improve javascript test suite
Date Fri, 05 Apr 2013 18:03:16 GMT


Wendall Cada commented on COUCHDB-1762:

Initially I thought the issue may be something in the tests causing the interpreter to crash.
However, after more careful inspection of the process, there appears to be a couple issues

First, the method used to check if the server is running could easily fail during a restart.
This is because it would often return a false positive by checking before the process had
time to exit.

Second, the method used for wait/sleep is not ideal. Using couchjs for running the tests is
fairly limited in capabilities. So code would need to be added to include some time of proper
sleep function. I tried this, but it felt like a LOT more work than it was worth. So I just
inserted some artificial timeouts in more ideal locations so the restarts don't cause as many
> Improve javascript test suite
> -----------------------------
>                 Key: COUCHDB-1762
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Build System
>            Reporter: Wendall Cada
>            Assignee: Wendall Cada
> In 1.3.0, there is a new part of the test suite to run the javascript tests from the
command line. Some people are experiencing intermittent failures on different hardware/OS
configurations. Mostly, tests hanging or timing out and failing. These are really hard to
troubleshoot, as they all pass just fine if run individually.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message