File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
sdk-java/src/test/java/ly/count/sdk/java/internal Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -411,13 +411,12 @@ public void readFileContent_fileNotReadable() throws IOException {
411411 BufferedWriter writer = Files .newBufferedWriter (file .toPath ());
412412 writer .write (fileContent );
413413 writer .close ();
414- Files .setPosixFilePermissions (file .toPath (), EnumSet .of (PosixFilePermission .OWNER_WRITE ));
415414
416- String content = Utils .readFileContent (file , logger );
417415 if (System .getProperty ("os.name" ).toLowerCase ().contains ("win" )) {
418- Assert .assertEquals (fileContent , content );
416+ Assert .assertEquals (fileContent , Utils . readFileContent ( file , logger ) );
419417 } else {
420- Assert .assertEquals ("" , content );
418+ Files .setPosixFilePermissions (file .toPath (), EnumSet .of (PosixFilePermission .OWNER_WRITE ));
419+ Assert .assertEquals ("" , Utils .readFileContent (file , logger ));
421420 }
422421 } finally {
423422 File file = new File (TEST_FILE_NAME );
You can’t perform that action at this time.
0 commit comments