Skip to content

TEST: Compare the example page's lines the same way on Windows - #311

Open
jwrosewell wants to merge 1 commit into
rcfrom
fix/jsp-test-line-endings
Open

jwrosewell wants to merge 1 commit into
rcfrom
fix/jsp-test-line-endings

Conversation

@jwrosewell

Copy link
Copy Markdown
Contributor

ExampleControllerTests.page_LabelsEachValueAndEndsWithFindOutMore failed on every Windows entry and passed on Ubuntu and macOS. It reads example.jsp and looks for lines joined by \n, but the Windows runners set core.autocrlf, so git checks the page out there with \r\n, and .gitattributes has no rule for a JSP. The test now turns \r\n into \n after reading the page, so it checks the same text everywhere.

This changes only ExampleControllerTests.java in the geo-location MVC example's tests.

ExampleControllerTests.page_LabelsEachValueAndEndsWithFindOutMore failed on every Windows entry and passed on Ubuntu and macOS. It reads example.jsp and looks for lines joined by \n, but the Windows runners set core.autocrlf, so git checks the page out there with \r\n, and .gitattributes has no rule for a JSP. The test now turns \r\n into \n after reading the page, so it checks the same text everywhere.
@jwrosewell
jwrosewell marked this pull request as ready for review December 6, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants