[
https://issues.apache.org/jira/browse/COUCHDB-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13623869#comment-13623869
]
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 arising.
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 issues.
> Improve javascript test suite
> -----------------------------
>
> Key: COUCHDB-1762
> URL: https://issues.apache.org/jira/browse/COUCHDB-1762
> 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: http://www.atlassian.com/software/jira