Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CIOEngineContainer not found #1982

Merged
merged 1 commit into from
May 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package flank.corellium.client.agent
import flank.corellium.client.data.AgentOperation
import flank.corellium.client.data.CommandResult
import io.ktor.client.HttpClient
import io.ktor.client.engine.cio.CIO
import io.ktor.client.features.logging.LogLevel
import io.ktor.client.features.logging.Logging
import io.ktor.client.features.websocket.DefaultClientWebSocketSession
Expand All @@ -23,7 +24,7 @@ suspend fun connectAgent(
token: String,
logLevel: LogLevel = LogLevel.NONE
): Agent = run {
val client = HttpClient {
val client = HttpClient(CIO) {
install(WebSockets)
install(Logging) {
level = logLevel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package flank.corellium.client.console

import io.ktor.client.HttpClient
import io.ktor.client.engine.cio.CIO
import io.ktor.client.features.websocket.WebSockets
import io.ktor.client.features.websocket.webSocketSession
import io.ktor.client.request.header
Expand All @@ -10,7 +11,7 @@ suspend fun connectConsole(
url: String,
token: String
): Console =
HttpClient {
HttpClient(CIO) {
install(WebSockets)
}.webSocketSession {
url(url)
Expand Down
1 change: 1 addition & 0 deletions test_configs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
corellium_auth.yml
6 changes: 6 additions & 0 deletions test_configs/flank-corellium.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
auth: "test_configs/corellium_auth.yml"
apks:
- path: "test_artifacts/master/apk/app-debug.apk"
tests:
- path: "test_artifacts/master/apk/app-multiple-flaky-debug-androidTest.apk"
max-test-shards: 3