diff --git a/build.gradle.kts b/build.gradle.kts index e1de67a..e360826 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,7 +3,7 @@ import org.gradle.api.tasks.wrapper.Wrapper.DistributionType.ALL import java.lang.System.getProperty plugins { - kotlin("jvm") version("1.9.23") + kotlin("jvm") version("1.9.24") id("org.graalvm.buildtools.native") version("0.10.1") } diff --git a/src/test/kotlin/ApplicationTest.kt b/src/test/kotlin/ApplicationTest.kt index 6134ea9..d58c958 100644 --- a/src/test/kotlin/ApplicationTest.kt +++ b/src/test/kotlin/ApplicationTest.kt @@ -2,6 +2,7 @@ package org.example import com.hexagonkt.core.logging.info import com.hexagonkt.core.media.APPLICATION_JSON +import com.hexagonkt.core.urlOf import com.hexagonkt.http.client.HttpClient import com.hexagonkt.http.client.HttpClientSettings import com.hexagonkt.http.client.jetty.JettyClientAdapter @@ -26,7 +27,7 @@ import kotlin.test.assertEquals @TestInstance(PER_CLASS) internal class ApplicationTest { - private val baseUrl: URL by lazy { URL("http://localhost:${restApi.server.runtimePort}") } + private val baseUrl: URL by lazy { urlOf("http://localhost:${restApi.server.runtimePort}") } private val settings: HttpClientSettings by lazy { HttpClientSettings(baseUrl) } private val client: HttpClient by lazy { HttpClient(JettyClientAdapter(), settings) }