[
https://issues.apache.org/jira/browse/NUTCH-1164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14165590#comment-14165590
]
Sebastian Nagel commented on NUTCH-1164:
----------------------------------------
Tests of protocol-http or protocol-httpclient failed repeatedly (but not
always) when running . Both plugin tests may run in parallel by {{<parallel
threadCount="2">}} (src/plugin/build.xml, but only 1.x!), and share the same
port for the embedded Jetty server, which may cause:
{code}
build/protocol-httpclient/test/TEST-org.apache.nutch.protocol.httpclient.TestProtocolHttpClient.txt:
2014-10-09 21:03:34,398 WARN mortbay.log (Slf4jLog.java:warn(76)) - failed
[email protected]:47501: java.net.BindException: Address already in use
{code}
Changed the port numbers to avoid frequent build failures due to collisions:
protocol-httpclient uses 47500, 47501, 47502, and protocol-http 47503, 47504.
See patch v4.
> Write JUnit tests for protocol-http
> -----------------------------------
>
> Key: NUTCH-1164
> URL: https://issues.apache.org/jira/browse/NUTCH-1164
> Project: Nutch
> Issue Type: Sub-task
> Affects Versions: nutchgora
> Reporter: Lewis John McGibbney
> Assignee: Sebastian Nagel
> Labels: test
> Fix For: 2.3, 1.10
>
> Attachments: NUTCH-1164-v3.patch, NUTCH-1164-v4.patch,
> NUTCH-1164.patch, NUTCH-1164.patch,
> TEST-org.apache.nutch.protocol.http.TestProtocolHttp.txt
>
>
> This issue should provide a single Junit test as part of an effort to provide
> JUnit tests for all nutchgora plugins
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)