Hande Celikkanat created NUTCH-3234:
---------------------------------------

             Summary: Summary: HtmlUnitProtocolIT.testFetchReturnsContent 
fails: getProtocolOutput returns no content
                 Key: NUTCH-3234
                 URL: https://issues.apache.org/jira/browse/NUTCH-3234
             Project: Nutch
          Issue Type: Bug
          Components: plugin, protocol
    Affects Versions: 1.23
            Reporter: Hande Celikkanat


With the fix from NUTCH-3233, the Testcontainers protocol integration tests
run, and HtmlUnitProtocolIT.testFetchReturnsContent fails, while testFetch200
and testFetch404 in the same class pass:

{noformat}
Test: testFetchReturnsContent() took 26 milli sec(s) FAILED: protocol-htmlunit 
must return non-null content for a live nginx page ==> expected: not <null>
org.opentest4j.AssertionFailedError: protocol-htmlunit must return non-null 
content for a live nginx page ==> expected: not <null>
    at org.junit.jupiter.api.Assertions.assertNotNull(Assertions.java:345)
    at 
org.apache.nutch.protocol.htmlunit.HtmlUnitProtocolIT.testFetchReturnsContent(HtmlUnitProtocolIT.java:76)
{noformat}

To reproduce, with the change from NUTCH-3233 applied and Docker running:

{noformat}
ant runtime resolve-test compile-core-test
ant -lib ivy/ivy-2.6.0.jar -f src/plugin/protocol-htmlunit/build.xml 
test-protocol-integration
{noformat}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to