This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hey, I have very weird problem that I just cannot solve...
Here is my situation:
Identical project with many microservices.
Identical OpenJDK 17 (eclipse temurin)
Identical version of Maven.
Identical encoding.
The project has 90% test coverage (JUnit) and utilizes test containers. Identical docker images are pulled from private cloud.
One device has Windows 11, mvn clean install performs all tasks and no test fails.
Second device runs Fedora 39 Workstation edition and there are couple of tests that always fail, always the same tests and they have NOTHING in common.
BUT when I try to execute all tests through Intellij (project configuration and tests are set to not use bundled java and maven but to use those installed on the system by me) the tests work.
I really cannot get my head around it and it makes me angry. The fedora install is fresh. I tried different builds of OpenJDK, different versions of maven. It's always the same couple of totally unrelated tests that fail and the code has no obvious problems. Even when I run the app and try to access that part of the code, it behaves correctly. Did anyone came across such issue ? My last hope is to isolate it to the Fedora itself, run something like Ubuntu as virtual machine on given device and try it to see if it works there...
Well. What fails? What didn't work? What's the stacktrace say? Using test files it maybe it can't find on one OS and does on the other?
Subreddit
Post Details
- Posted
- 9 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/javahelp/co...