Skip to content

Commit

Permalink
Close the file after confirming we can open it
Browse files Browse the repository at this point in the history
  • Loading branch information
squarejesse committed Sep 24, 2024
1 parent e303ae3 commit c0f86b1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c0f86b1

Please sign in to comment.