Skip to content

Commit

Permalink
Remove maybe obsolete check?
Browse files Browse the repository at this point in the history
  • Loading branch information
oldergod committed Jun 19, 2023
1 parent a5dd954 commit 348d910
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1113,15 +1113,8 @@ abstract class AbstractFileSystemTest(
@Test
fun deleteFailsOnNoSuchFileIfMustExist() {
val path = base / "no-such-file"
// TODO(jwilson): fix Windows to throw FileNotFoundException on deleting an absent file.
if (windowsLimitations) {
assertFailsWith<IOException> {
fileSystem.delete(path, mustExist = true)
}
} else {
assertFailsWith<FileNotFoundException> {
fileSystem.delete(path, mustExist = true)
}
assertFailsWith<FileNotFoundException> {
fileSystem.delete(path, mustExist = true)
}
}

Expand Down

0 comments on commit 348d910

Please sign in to comment.