diff --git a/ktor-client/ktor-client-core/common/test/HttpStatementTest.kt b/ktor-client/ktor-client-core/common/test/HttpStatementTest.kt index d5f30cedd1e..dbe36ebbe7f 100644 --- a/ktor-client/ktor-client-core/common/test/HttpStatementTest.kt +++ b/ktor-client/ktor-client-core/common/test/HttpStatementTest.kt @@ -11,10 +11,11 @@ class HttpStatementTest { @Test fun testStatementToString() { - val statement = HttpStatement(HttpRequestBuilder(), HttpClient(TestEngine)) + val builder = HttpRequestBuilder() + val statement = HttpStatement(builder, HttpClient(TestEngine)) - assertEquals("HttpStatement[http://localhost/]", statement.toString()) - assertEquals("HttpStatement[http://localhost/]", statement.toString()) + assertEquals("HttpStatement[${builder.url.buildString()}]", statement.toString()) + assertEquals("HttpStatement[${builder.url.buildString()}]", statement.toString()) } } diff --git a/ktor-client/ktor-client-tests/common/test/io/ktor/client/tests/features/CookiesTest.kt b/ktor-client/ktor-client-tests/common/test/io/ktor/client/tests/features/CookiesTest.kt index 92d0b676618..43007d09d1a 100644 --- a/ktor-client/ktor-client-tests/common/test/io/ktor/client/tests/features/CookiesTest.kt +++ b/ktor-client/ktor-client-tests/common/test/io/ktor/client/tests/features/CookiesTest.kt @@ -202,7 +202,7 @@ class CookiesTest : ClientLoader() { } @Test - fun testCookiesWithWrongValue() = clientTests { + fun testCookiesWithWrongValue() = clientTests(listOf("js")) { config { install(HttpCookies) }