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
Hi! I looked into this and I think the underlying issue is how Path handles a path with a leading slash that Windows gives, e.g. /C:/some/directory. This causes the InvalidPathException that shows up in the unit tests on Windows:
Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/some/directory
File is able to handle the "system-dependent prefix string" (javadoc) and so changing from Path.of() to File.toPath() lets it work on Windows and non-Windows.
I tested the build on Windows 11 and Ubuntu 20.04. Please take a look at the PR and let me know if there's any issues!
Describe the bug
Some unit tests are not compatible with Windows, and causes the overall build to fail
To Reproduce
Steps to reproduce the behavior:
Run
./gradlew build
for Data Prepper on a Windows computerExpected behavior
The build should succeed.
Environment (please complete the following information):
Additional context
Some of the failed tests were fixed in this PR #968
The text was updated successfully, but these errors were encountered: