Skip to content

Commit ed3ea11

Browse files
committed
Update return type of testDeleteDirectoryOnIOException0
Changed the return type of testDeleteDirectoryOnIOException0 from Void to File and updated the return statement to return the test directory. This improves clarity and allows the caller to access the created directory.
1 parent 985ddc8 commit ed3ea11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

microsphere-java-core/src/test/java/io/microsphere/io/FileUtilsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void testDeleteDirectoryOnIOException() throws Exception {
120120
assertTrue(executor.awaitTermination(5, SECONDS));
121121
}
122122

123-
Void testDeleteDirectoryOnIOException0() throws Exception {
123+
File testDeleteDirectoryOnIOException0() throws Exception {
124124
File testDir = createRandomTempDirectory();
125125

126126
ExecutorService fileCreationExecutor = newSingleThreadExecutor();
@@ -170,7 +170,7 @@ Void testDeleteDirectoryOnIOException0() throws Exception {
170170
assertFalse(creatingFile.get());
171171
assertFalse(deletingDirectory.get());
172172

173-
return null;
173+
return testDir;
174174
}
175175

176176
@Test

0 commit comments

Comments
 (0)