[ 
https://issues.apache.org/jira/browse/COUCHDB-3057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15373657#comment-15373657
 ] 

ASF GitHub Bot commented on COUCHDB-3057:
-----------------------------------------

GitHub user davisp opened a pull request:

    https://github.com/apache/couchdb/pull/433

    Enable test suite functions in the test suite

    This enables the new couchjs test suite functions.
    
    COUCHDB-3057
    
    ---
    
    ![screen shot 2016-07-12 at 3 49 04 
pm](https://cloud.githubusercontent.com/assets/19929/16783087/3550530e-4848-11e6-993f-91fbc920cd3b.png)


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cloudant/couchdb 
3057-enable-test-suite-functions-for-test-suite

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb/pull/433.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #433
    
----
commit cd30438a5074bbdebe940b7b6bbce9372c331677
Author: Paul J. Davis <[email protected]>
Date:   2016-07-12T20:47:08Z

    Enable test suite functions in the test suite
    
    This enables the new couchjs test suite functions.
    
    COUCHDB-3057

----


> Add a sleep function for couchjs test suite tests
> -------------------------------------------------
>
>                 Key: COUCHDB-3057
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3057
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: JavaScript View Server
>            Reporter: Paul Joseph Davis
>
> CouchJS does not have a sleep function exposed which means it does silly 
> things like request the root url in a tight loop until a timeout is reached.
> So it'd be a good idea to add some of these things as C functions to prevent 
> silliness in test suites.
> So far this just includes a sleep function that takes a single argument as 
> the number of millseconds to sleep before resuming execution. This is 
> accomplished using Sleep on Windows and usleep on everything else.
> These test functions are tied to the presence of a command line switch so 
> that we can ensure that they are not enabled and available to view server 
> scripts by default. The help message has a helpful note to *not* enable these 
> for production systems.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to