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 4242import java .util .stream .Stream ;
4343
4444import static org .assertj .core .api .Assertions .assertThat ;
45+ import static org .assertj .core .api .Assumptions .assumeThat ;
4546import static org .mockito .ArgumentMatchers .any ;
4647import static org .mockito .Mockito .when ;
4748
@@ -413,7 +414,7 @@ public void filePermissions() throws Exception {
413414
414415 long hash1 = container .hashCopiedFiles ().getValue ();
415416
416- assertThat (path .toFile ().canExecute ()).isFalse ();
417+ assumeThat (path .toFile ().canExecute ()).isFalse ();
417418 path .toFile ().setExecutable (true );
418419
419420 assertThat (container .hashCopiedFiles ().getValue ()).isNotEqualTo (hash1 );
@@ -423,7 +424,7 @@ public void filePermissions() throws Exception {
423424 public void folderPermissions () throws Exception {
424425 Path tempDirectory = Files .createTempDirectory ("reusable_test" );
425426 MountableFile mountableFile = MountableFile .forHostPath (tempDirectory );
426- assertThat (new File (mountableFile .getResolvedPath ())).isDirectory ();
427+ assumeThat (new File (mountableFile .getResolvedPath ())).isDirectory ();
427428 Path subDir = Files .createDirectory (tempDirectory .resolve ("sub" ));
428429 subDir .toFile ().setWritable (false );
429430 container .withCopyFileToContainer (mountableFile , "/foo/bar/" );
You can’t perform that action at this time.
0 commit comments