spring-projects / spring-projects/spring-ai
Tests failing on Windows: improve line separator management
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
Bug description
Some tests are failing because the expected results do not take care (enough) about the OS specific line separator (Windows: \r\n vs expected: \n).
Environment
Spring AI version 2.x.x, Java version 17
Steps to reproduce
Clone the repository then run all the tests: mvnw --batch-mode -ntp --update-snapshots verify
Expected behavior
All tests are passing
Minimal Complete Reproducible example
N/A
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run mvnw --batch-mode -ntp --update-snapshots verify on Windows and inspect the tests that fail because of \r\n versus \n expectations. Update the affected line-separator handling so the full verification command passes on Windows and other operating systems.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100