From 95e95b0c657f5c9fff67d0e4ea25150a4130964d Mon Sep 17 00:00:00 2001 From: Bruce Hamilton Date: Tue, 3 Dec 2024 10:46:14 +0100 Subject: [PATCH] Remove invalid test for writeChannel --- .../jvm/test/io/ktor/tests/utils/FileChannelTest.kt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ktor-utils/jvm/test/io/ktor/tests/utils/FileChannelTest.kt b/ktor-utils/jvm/test/io/ktor/tests/utils/FileChannelTest.kt index e6af6335ae..b4ba0ca55c 100644 --- a/ktor-utils/jvm/test/io/ktor/tests/utils/FileChannelTest.kt +++ b/ktor-utils/jvm/test/io/ktor/tests/utils/FileChannelTest.kt @@ -130,12 +130,4 @@ class FileChannelTest { assertEquals("Hello", file.readText()) } - @Test - fun `writeChannel writes to file on flush`() = runTest { - val file = Files.createTempFile("file", "txt").toFile() - val ch = file.writeChannel() - ch.writeStringUtf8("Hello") - ch.flush() - assertEquals("Hello", file.readText()) - } }