Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.9.2
-
None
Description
Some tests are failing when user.language and user.region are set to values other than en and US respectively.
The following test failures were initially observed (from the builds with fr_FR and ja_JP locales, others exist in those builds):
[ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.043 s <<< FAILURE! - in org.apache.nifi.processor.TestFormatUtils [ERROR] testFormatDataSize(org.apache.nifi.processor.TestFormatUtils) Time elapsed: 0.042 s <<< FAILURE! org.junit.ComparisonFailure: expected:<10[.]4 bytes> but was:<10[,]4 bytes> at org.apache.nifi.processor.TestFormatUtils.testFormatDataSize(TestFormatUtils.java:91)
[ERROR] testPutElasticSearchOnTriggerIndex(org.apache.nifi.processors.elasticsearch.TestPutElasticsearchHttpRecord) Time elapsed: 0.195 s <<< FAILURE! java.lang.AssertionError: org.junit.ComparisonFailure: expected:<6:55 [PM]> but was:<6:55 [午後]> at org.apache.nifi.processors.elasticsearch.TestPutElasticsearchHttpRecord.testPutElasticSearchOnTriggerIndex(TestPutElasticsearchHttpRecord.java:114) Caused by: org.junit.ComparisonFailure: expected:<6:55 [PM]> but was:<6:55 [午後]> at org.apache.nifi.processors.elasticsearch.TestPutElasticsearchHttpRecord.lambda$testPutElasticSearchOnTriggerIndex$0(TestPutElasticsearchHttpRecord.java:76)
The Travis CI build's configuration currently does not properly run tests with a non-en_US locale. This will be resolved in NIFI-5505.
Attachments
Issue Links
- contains
-
NIFI-5750 Tests shouldn't rely on localized data
- Resolved
-
NIFI-6531 Fix locale-dependent failing unit tests
- Resolved
- is duplicated by
-
NIFI-6592 Test fails for nifi-media-processors when decimals-separator != .
- Resolved
- is related to
-
NIFI-5505 Need Travis CI for building NiFi on Java 11
- Resolved
- links to