-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ktor] Put back the workaround for KTOR-6883 but for Ktor WASM/JS tes…
…ts this time (artificial delay)" This reverts commit bb60044
- Loading branch information
1 parent
bd227e4
commit 43f5f92
Showing
5 changed files
with
81 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.hildan.krossbow.websocket.ktor | ||
|
||
import io.ktor.client.engine.* | ||
import io.ktor.client.engine.js.* | ||
import org.hildan.krossbow.websocket.test.* | ||
import kotlin.time.Duration.Companion.milliseconds | ||
|
||
class KtorWasmJsWebSocketClientTest : KtorClientTestSuite( | ||
// The browser cannot reveal status codes for security reasons | ||
statusCodeSupport = if (currentPlatform() is Platform.WasmJs.Browser) StatusCodeSupport.None else StatusCodeSupport.All, | ||
// See https://youtrack.jetbrains.com/issue/KTOR-6970 | ||
shouldTestNegotiatedSubprotocol = false, | ||
// workaround for https://youtrack.jetbrains.com/issue/KTOR-6883 (NOT fixed for WASM) | ||
headersTestDelay = 200.milliseconds.takeIf { currentPlatform() == Platform.WasmJs.NodeJs }, | ||
) { | ||
override fun provideEngine(): HttpClientEngineFactory<*> = Js | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters