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 7979import java .util .HashMap ;
8080import java .util .HashSet ;
8181import java .util .Iterator ;
82+ import java .util .LinkedHashMap ;
8283import java .util .LinkedHashSet ;
8384import java .util .List ;
8485import java .util .Map ;
@@ -180,7 +181,8 @@ public class GenericContainer<SELF extends GenericContainer<SELF>>
180181 @ Nullable
181182 private Long shmSize ;
182183
183- private Map <MountableFile , String > copyToFileContainerPathMap = new HashMap <>();
184+ // Maintain order in which entries are added, as earlier target location may be a prefix of a later location.
185+ private Map <MountableFile , String > copyToFileContainerPathMap = new LinkedHashMap <>();
184186
185187 protected final Set <Startable > dependencies = new HashSet <>();
186188
You can’t perform that action at this time.
0 commit comments