diff --git a/okio-testing-support/src/commonMain/kotlin/okio/AbstractFileSystemTest.kt b/okio-testing-support/src/commonMain/kotlin/okio/AbstractFileSystemTest.kt index b67e66841e..26a34661ec 100644 --- a/okio-testing-support/src/commonMain/kotlin/okio/AbstractFileSystemTest.kt +++ b/okio-testing-support/src/commonMain/kotlin/okio/AbstractFileSystemTest.kt @@ -2636,7 +2636,8 @@ abstract class AbstractFileSystemTest( CloseBehavior.DoesNothing -> { fileSystem.close() - fileSystem.appendingSink(path) + fileSystem.appendingSink(path).use { + } fileSystem.atomicMove(path, base / "file2") fileSystem.createDirectory(base / "directory") fileSystem.delete(path)