Skip to content

Commit 8649c18

Browse files
committed
Update FileUtilsTest.java
1 parent f140dae commit 8649c18

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,12 @@ public void testForceDeleteOnIOException() throws Exception {
239239
outputStream.write("Hello,World".getBytes(UTF_8));
240240
// wait for notification
241241
testFile.wait();
242+
outputStream.close();
242243
}
243244
return null;
244245
});
245246

246-
assertThrows(IOException.class, () -> forceDelete(testDir));
247+
assertThrows(IOException.class, () -> forceDelete(testFile));
247248

248249
synchronized (testFile) {
249250
testFile.notify();

0 commit comments

Comments
 (0)