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

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

GitHub user jaydoane opened a pull request:

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

    Change the eunit template cluster_port to 0

    so it will listen on a random, unused port during testing
    
    This makes is possible to "make eunit" when a dev cluster is running on the 
same machine without a port collision
    
    COUCHDB-2871

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

    $ git pull https://github.com/jaydoane/couchdb 2871-eunit-cluster-port

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

    https://github.com/apache/couchdb/pull/365.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 #365
    
----
commit 4a305a0d6e1bcce02c851d9d2fa9d311fac76173
Author: Jay Doane <[email protected]>
Date:   2015-11-06T01:46:59Z

    Change the eunit template cluster_port to 0 so it will listen on random, 
unused port during testing
    
    This makes is possible to "make eunit" when a dev cluster is running on the 
same machine without a port collision
    
    COUCHDB-2871

----


> It should be possible to run "make eunit" while a dev cluster is running
> ------------------------------------------------------------------------
>
>                 Key: COUCHDB-2871
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2871
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Test Suite
>            Reporter: Jay Doane
>
> The default ports for eunit tests are:
> {cluster_port, 5984}
> {backend_port, 5986}
> as seen in 
> https://github.com/apache/couchdb/blob/master/setup_eunit.template#L3-L4
> Unfortunately, the dev cluster runs haproxy on port 5984, so it's not 
> possible to run the eunit tests while a dev cluster is running, which is 
> inconvenient. Also unfortunate is that several tests in the config and couch 
> applications rely on the backend_port being 5986.
> The good news is that we can change the eunit cluster_port from the default 
> (to, e.g. 59840), but leave the backend_port as is, and enjoy the ability to 
> run tests while a dev cluster is running.



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

Reply via email to