File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
core/src/test/java/org/testcontainers/containers Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -407,6 +407,7 @@ public void folderAndFile() throws Exception {
407407 @ Test
408408 public void filePermissions () throws Exception {
409409 Path path = File .createTempFile ("reusable_test" , ".txt" ).toPath ();
410+ path .toFile ().setExecutable (false );
410411 MountableFile mountableFile = MountableFile .forHostPath (path );
411412 container .withCopyFileToContainer (mountableFile , "/foo/bar" );
412413
@@ -424,12 +425,12 @@ public void folderPermissions() throws Exception {
424425 MountableFile mountableFile = MountableFile .forHostPath (tempDirectory );
425426 assertThat (new File (mountableFile .getResolvedPath ())).isDirectory ();
426427 Path subDir = Files .createDirectory (tempDirectory .resolve ("sub" ));
427- subDir .toFile ().setExecutable (false );
428+ subDir .toFile ().setWritable (false );
428429 container .withCopyFileToContainer (mountableFile , "/foo/bar/" );
429430
430431 long hash1 = container .hashCopiedFiles ().getValue ();
431432
432- subDir .toFile ().setExecutable (true );
433+ subDir .toFile ().setWritable (true );
433434
434435 assertThat (container .hashCopiedFiles ().getValue ()).isNotEqualTo (hash1 );
435436 }
You can’t perform that action at this time.
0 commit comments