From 4cfea74fcffb2002c80e35d59fbdaa4e28cef9d2 Mon Sep 17 00:00:00 2001 From: John Zhang Date: Sat, 9 Apr 2022 15:54:23 +1000 Subject: [PATCH] fix duplicate test --- .../common/test/io/ktor/client/tests/plugins/CookiesTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ktor-client/ktor-client-tests/common/test/io/ktor/client/tests/plugins/CookiesTest.kt b/ktor-client/ktor-client-tests/common/test/io/ktor/client/tests/plugins/CookiesTest.kt index 7ced35f9064..fc8ec66e78b 100644 --- a/ktor-client/ktor-client-tests/common/test/io/ktor/client/tests/plugins/CookiesTest.kt +++ b/ktor-client/ktor-client-tests/common/test/io/ktor/client/tests/plugins/CookiesTest.kt @@ -192,7 +192,7 @@ class CookiesTest : ClientLoader() { test { client -> client.prepareGet("$TEST_HOST/encoded").execute { httpResponse -> val response = httpResponse.bodyAsText() - val cookieStrings = response.split(";").filter { it.isNotBlank() } + val cookieStrings = response.split("; ").filter { it.isNotBlank() } assertEquals(4, cookieStrings.size) assertEquals("uri=first%2C+cookie", cookieStrings[0]) assertEquals("raw=first%2C+cookie", cookieStrings[1])