-
-
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.
Use WinHttp engine instead of Curl in tests to avoid libcurl setup
- Loading branch information
1 parent
7318109
commit 6a8dab6
Showing
8 changed files
with
10 additions
and
102 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
4 changes: 2 additions & 2 deletions
4
...64Main/kotlin/org/hildan/krossbow/websocket/test/autobahn/AutobahnReportsNativeMingw64.kt
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package org.hildan.krossbow.websocket.test.autobahn | ||
|
||
import io.ktor.client.engine.* | ||
import io.ktor.client.engine.curl.* | ||
import io.ktor.client.engine.winhttp.* | ||
|
||
actual fun ktorEngine(): HttpClientEngineFactory<*> = Curl | ||
actual fun ktorEngine(): HttpClientEngineFactory<*> = WinHttp |
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
8 changes: 4 additions & 4 deletions
8
...autobahn/KtorCurlWebSocketAutobahnTest.kt → ...obahn/KtorWinHttpWebSocketAutobahnTest.kt
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package org.hildan.krossbow.websocket.test.autobahn | ||
|
||
import io.ktor.client.* | ||
import io.ktor.client.engine.curl.* | ||
import io.ktor.client.engine.winhttp.* | ||
import io.ktor.client.plugins.websocket.* | ||
import org.hildan.krossbow.websocket.WebSocketClient | ||
import org.hildan.krossbow.websocket.ktor.KtorWebSocketClient | ||
|
||
class KtorCurlWebSocketAutobahnTest : AutobahnClientTestSuite( | ||
agentUnderTest = "krossbow-ktor-curl-client-${Platform.osFamily.name.lowercase()}", | ||
class KtorWinHttpWebSocketAutobahnTest : AutobahnClientTestSuite( | ||
agentUnderTest = "krossbow-ktor-winhttp-client-${Platform.osFamily.name.lowercase()}", | ||
) { | ||
override fun provideClient(): WebSocketClient = KtorWebSocketClient(HttpClient(Curl) { install(WebSockets) }) | ||
override fun provideClient(): WebSocketClient = KtorWebSocketClient(HttpClient(WinHttp) { install(WebSockets) }) | ||
} |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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