Skip to content

Commit

Permalink
Fix test disk clean (#14)
Browse files Browse the repository at this point in the history
* fix testDiskClean

* fix testDiskClean

Co-authored-by: zhewenf2 <[email protected]>
  • Loading branch information
ZhewenFu and zhewenfufufu committed Nov 2, 2022
1 parent 3820638 commit 2a0b570
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public void testDiskClean() {

assertTrue(dc.exists());

FileUtils.renameDoneFile(new File(dc, "filestodelete.txt"));
File file = new File(dc, "filestodelete.txt");
FileUtils.writeToFile(file, "some contents");
FileUtils.renameDoneFile(file);

File[] files = FileUtils.loadDoneFiles(dc);
assertTrue(files.length > 0);
Expand Down

0 comments on commit 2a0b570

Please sign in to comment.