Bug 65384 - org.apache.coyote.http2.TestFlowControl test depends on user's language
Summary: org.apache.coyote.http2.TestFlowControl test depends on user's language
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: Connectors (show other bugs)
Version: 9.0.48
Hardware: PC All
: P2 minor (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-16 15:36 UTC by Konstantin Kolinko
Modified: 2021-06-18 09:22 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Kolinko 2021-06-16 15:36:45 UTC
Running the unit tests for Tomcat 9.0.48, the following test fails:

Testsuite: org.apache.coyote.http2.TestFlowControl
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1,589 sec
[...]
------------- ---------------- ---------------

Testcase: testNotFound[0] took 1,399 sec
	FAILED
expected:<...[content-language]-[[en]]
3-Header-[content-...> but was:<...[content-language]-[[ru]]
3-Header-[content-...>
junit.framework.AssertionFailedError: expected:<...[content-language]-[[en]]
3-Header-[content-...> but was:<...[content-language]-[[ru]]
3-Header-[content-...>
	at org.apache.coyote.http2.TestFlowControl.testNotFound(TestFlowControl.java:97)


Apparently it expects content-language to be English, but for some reason it differs.
Comment 1 Christopher Schultz 2021-06-16 16:21:36 UTC
$god help us if we run it in Turkish locale[1]. :)

[1] https://mattryall.net/blog/the-infamous-turkish-locale-bug
Comment 2 Mark Thomas 2021-06-18 09:22:37 UTC
Fixed in:
- 10.1.x for 10.1.0-M2 onwards
- 10.0.x for 10.0.8 onwards
- 9.0.x for 9.0.49 onwards
- 8.5.x for 8.5.69 onwards