We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f140dae commit 8649c18Copy full SHA for 8649c18
1 file changed
microsphere-java-core/src/test/java/io/microsphere/io/FileUtilsTest.java
@@ -239,11 +239,12 @@ public void testForceDeleteOnIOException() throws Exception {
239
outputStream.write("Hello,World".getBytes(UTF_8));
240
// wait for notification
241
testFile.wait();
242
+ outputStream.close();
243
}
244
return null;
245
});
246
- assertThrows(IOException.class, () -> forceDelete(testDir));
247
+ assertThrows(IOException.class, () -> forceDelete(testFile));
248
249
synchronized (testFile) {
250
testFile.notify();
0 commit comments