-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Randomize naming for createVolumeDirectory method #4195
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @johnathana, this seems like a sensible fix to apply
@rnorth btw we should mark it as deprecated as the method is unused |
This is a nice utility function. I use it to extract jar classhpath resources in CI docker in docker environments. |
@johnathana consider using |
Thank you for your prompt response @bsideup. I am already using
|
@johnathana since creating temporary files in a current directory isn't Testcontainers' responsibility, I'd still prefer to remote that unused method, especially given how simple it is. |
Co-authored-by: Richard North <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix and adding the deprecation notice @johnathana.
Currently createVolumeDirectory method uses
System.currentTimeMillis()
to randomize the volume directory name. This appears to be problematic for test suites running in parallel, falling to the exact same millisecond causing random test failures.