You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by davisp <gi...@git.apache.org> on 2016/07/12 20:18:29 UTC

[GitHub] couchdb-couch pull request #183: Add sleep as a test suite function

GitHub user davisp opened a pull request:

    https://github.com/apache/couchdb-couch/pull/183

    Add sleep as a test suite function

    This adds a class of test suite functions that are only available when a
    command line switch is passed to couchjs. This so that the JavaScript
    test suite has access to some helpful additional functions that aren't
    part of the JavaScript language.
    
    This particular change only adds a single `sleep` function which takes a
    single argument as the number of milliseconds to sleep.
    
    COUCHDB-3057
    
    
    ---
    
    And a demonstration:
    
    
        $ ./bin/couchjs -
        sleep(5);
        ReferenceError: sleep is not defined
        Stacktrace:
        	@-:1
        Failed to execute script.
        $ ./bin/couchjs -T -
        sleep(5000);
        ^D
        davisp@cylinder master $ echo $?
        0


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

    $ git pull https://github.com/cloudant/couchdb-couch 3057-add-couch-js-sleep-test-suite-helper

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

    https://github.com/apache/couchdb-couch/pull/183.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 #183
    
----
commit 367f4b6a7977e83026e8d1823bad9d01b9203579
Author: Paul J. Davis <pa...@gmail.com>
Date:   2016-07-12T20:13:47Z

    Add sleep as a test suite function
    
    This adds a class of test suite functions that are only available when a
    command line switch is passed to couchjs. This so that the JavaScript
    test suite has access to some helpful additional functions that aren't
    part of the JavaScript language.
    
    This particular change only adds a single `sleep` function which takes a
    single argument as the number of milliseconds to sleep.
    
    COUCHDB-3057

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-couch pull request #183: Add sleep as a test suite function

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/couchdb-couch/pull/183


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---