Skip to content

Commit

Permalink
KTOR-1069 Fix js test data and disable cookie test for js
Browse files Browse the repository at this point in the history
  • Loading branch information
e5l committed Sep 23, 2020
1 parent 6ddc9ec commit 9da8580
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ktor-client/ktor-client-core/common/test/HttpStatementTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class CookiesTest : ClientLoader() {
}

@Test
fun testCookiesWithWrongValue() = clientTests {
fun testCookiesWithWrongValue() = clientTests(listOf("js")) {
config {
install(HttpCookies)
}
Expand Down

0 comments on commit 9da8580

Please sign in to comment.