Sebastian Nagel created NUTCH-3144:
--------------------------------------

             Summary: URLUtil unit tests fail after upgrade to crawler-commons 
1.6
                 Key: NUTCH-3144
                 URL: https://issues.apache.org/jira/browse/NUTCH-3144
             Project: Nutch
          Issue Type: Bug
          Components: test
    Affects Versions: 1.22
            Reporter: Sebastian Nagel
            Assignee: Sebastian Nagel
             Fix For: 1.22


{noformat}
$> ant test-core -Dtestcase=TestURLUtil
...
[junitlauncher] Running org.apache.nutch.util.TestURLUtil
[junitlauncher] Tests run: 9, Failures: 2, Aborted: 0, Skipped: 0, Time 
elapsed: 0.535 sec

BUILD FAILED

$> grep -A1 FAILED build/test/TEST-org.apache.nutch.util.TestURLUtil.txt
Test: testGetDomainSuffix() took 405 milli sec(s) FAILED: expected: 
<xn--fl-zia.no> but was: <flå.no>
org.opentest4j.AssertionFailedError: expected: <xn--fl-zia.no> but was: <flå.no>
--
Test: testGetTopLevelDomain() took 1 milli sec(s) FAILED: expected: 
<xn--cg4bki> but was: <삼성>
org.opentest4j.AssertionFailedError: expected: <xn--cg4bki> but was: <삼성>
{noformat}

The URLUtil class needs to be adapted to the changes introduced in 
[crawler-commons#478|https://github.com/crawler-commons/crawler-commons/pull/478].

The issue was not discovered by GitHub workflows because of NUTCH-3143.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to