From 348d910703648ce31cbeb8709d4e042c461ae3e8 Mon Sep 17 00:00:00 2001 From: Benoit Quenaudon Date: Mon, 19 Jun 2023 19:45:08 +0200 Subject: [PATCH] Remove maybe obsolete check? --- .../commonMain/kotlin/okio/AbstractFileSystemTest.kt | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/okio-testing-support/src/commonMain/kotlin/okio/AbstractFileSystemTest.kt b/okio-testing-support/src/commonMain/kotlin/okio/AbstractFileSystemTest.kt index 9ed87c3b64..8ce51c6df7 100644 --- a/okio-testing-support/src/commonMain/kotlin/okio/AbstractFileSystemTest.kt +++ b/okio-testing-support/src/commonMain/kotlin/okio/AbstractFileSystemTest.kt @@ -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 { - fileSystem.delete(path, mustExist = true) - } - } else { - assertFailsWith { - fileSystem.delete(path, mustExist = true) - } + assertFailsWith { + fileSystem.delete(path, mustExist = true) } }