You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] DICOMSerializerTest and NCPDPSerializerTest fail on Windows #601
Eleven server unit tests fail on Windows because they compare XML with CRLF line endings against fixtures checked out with LF. It failed the same way in both runs I made, one on main at 8e5e63d and one with #600 applied. #600 doesn't touch these classes.
On Windows, check out 8e5e63d with core.autocrlf=false.
Run gradlew.bat :server:test --tests "*DICOMSerializerTest" --tests "*NCPDPSerializerTest" -PdisableSigning=true.
Expected behavior
Both classes pass on Windows.
Actual behavior
20 tests run and 11 fail with org.junit.ComparisonFailure. In the failures I looked at, the strings first differ at the first line break. From the test report for NCPDPSerializerTest, where is a carriage return:
expected: ...51_Billing_Response>[ <TransactionHeaderResponse>
but was: ...51_Billing_Response>[ <TransactionHeaderResponse>
The fixtures are the server/tests/dicom/*-instance.xml and server/tests/test-ncpdp-*-output.xml files. Git reports them as LF in the index and in the working tree (git ls-files --eol), and .gitattributes has no rule for them.
Not tested. Checking out with core.autocrlf=true would give the fixtures CRLF endings, so these tests may pass that way.
Additional context
The full :server:test task fails on Windows for this reason, so a contributor there can't tell a real failure from these 11 without rerunning them on main. Comparing with line endings normalized would fix both classes.
Activity
Ignore line endings in DICOM and NCPDP serializer tests