Skip to content

Commit

Permalink
don't fail when CI server can't immediately delete temp file
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Sep 23, 2023
1 parent 0b1eef7 commit d47c2b1
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,14 @@ protected void setUp() throws Exception {

@Override
protected void tearDown() throws Exception {
deleteDirectory(localRepo);
try {
deleteDirectory(localRepo);
} catch (IOException ex) {
// CI servers can have problems deleting files.
// It will get cleared out eventually, and since
// since temporary directories have unique names,
// it shouldn't affect subsequent tests.
}

super.tearDown();
}
Expand Down

0 comments on commit d47c2b1

Please sign in to comment.