Skip to content

Commit

Permalink
Merge pull request #1276 from square/bquenaudon.2023-06-19.windowsfixed
Browse files Browse the repository at this point in the history
Remove maybe obsolete check?
  • Loading branch information
oldergod authored Jun 20, 2023
2 parents 5d4205f + 348d910 commit 06317a3
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1114,15 +1114,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 06317a3

Please sign in to comment.