File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
core/src/main/java/org/testcontainers/containers Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 8888import java .util .Objects ;
8989import java .util .Optional ;
9090import java .util .Set ;
91+ import java .util .UUID ;
9192import java .util .concurrent .ExecutionException ;
9293import java .util .concurrent .Future ;
9394import java .util .concurrent .TimeUnit ;
@@ -647,8 +648,9 @@ protected Logger logger() {
647648 * @param temporary is the volume directory temporary? If true, the directory will be deleted on JVM shutdown.
648649 * @return path to the volume directory
649650 */
651+ @ Deprecated
650652 protected Path createVolumeDirectory (boolean temporary ) {
651- Path directory = new File (".tmp-volume-" + System . currentTimeMillis ()).toPath ();
653+ Path directory = new File (".tmp-volume-" + UUID . randomUUID ()).toPath ();
652654 PathUtils .mkdirp (directory );
653655
654656 if (temporary ) Runtime .getRuntime ().addShutdownHook (new Thread (DockerClientFactory .TESTCONTAINERS_THREAD_GROUP , () -> {
You can’t perform that action at this time.
0 commit comments