Skip to content

Commit 1abad07

Browse files
committed
Fix test
1 parent 8a9f323 commit 1abad07

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

maven-binding-builder/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ dependencies {
1212

1313
runtimeOnly(projects.githubWorkflowsKt)
1414

15+
testImplementation("io.ktor:ktor-client-cio:3.3.3")
1516
testImplementation(projects.testUtils)
1617
}

maven-binding-builder/src/test/kotlin/io/github/typesafegithub/workflows/mavenbinding/JavaBytecodeVersionTest.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ import io.github.typesafegithub.workflows.actionbindinggenerator.domain.ActionCo
44
import io.github.typesafegithub.workflows.testutils.JdkVersionToBytecodeVersion.JDK_8
55
import io.github.typesafegithub.workflows.testutils.shouldHaveBytecodeVersion
66
import io.kotest.core.spec.style.FunSpec
7+
import io.ktor.client.HttpClient
8+
import io.ktor.client.engine.cio.CIO
79

810
class JavaBytecodeVersionTest :
911
FunSpec(
1012
{
1113
test("bindings are built with desired Java bytecode version") {
1214
val actionCoords = ActionCoords("actions", "setup-java", "v3")
13-
val jars = actionCoords.buildJars()!!
15+
val jars = actionCoords.buildJars(httpClient = HttpClient(CIO))!!
1416
jars.randomClassFile() shouldHaveBytecodeVersion JDK_8
1517
}
1618
},

0 commit comments

Comments
 (0)