https://bz.apache.org/bugzilla/show_bug.cgi?id=63830

            Bug ID: 63830
           Summary: Tests in org.apache.coyote.http2.TestHttp2Limits fails
                    due to locale unwareness
           Product: Tomcat 8
           Version: 8.5.x-trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Connectors
          Assignee: dev@tomcat.apache.org
          Reporter: micha...@apache.org
  Target Milestone: ----

Based on this discussion:
https://www.mail-archive.com/dev@tomcat.apache.org/msg136980.html

The tests fail for comparasion if the tester's locale isn't en_*:

Testcase: testHeaderLimits1x128k took 0,416 sec
    FAILED

Expected: match to regular expression pattern
[0-Goaway-\[1\]-\[11\]-\[Connection \[\d++\], Stream \[3\], .*]
     but: was "0-Goaway-[1]-[11]-[Verbindung [2], Stream [3],
Gesamt-Header-Größe zu groß]"
junit.framework.AssertionFailedError:
Expected: match to regular expression pattern
[0-Goaway-\[1\]-\[11\]-\[Connection \[\d++\], Stream \[3\], .*]
     but: was "0-Goaway-[1]-[11]-[Verbindung [2], Stream [3],
Gesamt-Header-Größe zu groß]"
    at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
    at
org.apache.coyote.http2.TestHttp2Limits.doTestHeaderLimits(TestHttp2Limits.java:259)
    at
org.apache.coyote.http2.TestHttp2Limits.doTestHeaderLimits(TestHttp2Limits.java:170)
    at
org.apache.coyote.http2.TestHttp2Limits.doTestHeaderLimits(TestHttp2Limits.java:164)
    at
org.apache.coyote.http2.TestHttp2Limits.doTestHeaderLimits(TestHttp2Limits.java:158)
    at
org.apache.coyote.http2.TestHttp2Limits.testHeaderLimits1x128k(TestHttp2Limits.java:138)

So either tomcat-resources-*.jar are excluded from the tests or a StringManager
must be used to compare matching strings.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to