Skip to content

Commit 15f68a3

Browse files

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.sbt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ val clientTestServerSettings = Seq(
385385
.evaluated,
386386
Test / testOptions += Tests.Setup(() => {
387387
val port = (clientTestServer2_13 / clientTestServerPort).value
388-
PollingUtils.waitUntilServerAvailable(new URL(s"http://localhost:$port"))
388+
PollingUtils.waitUntilServerAvailable(url(s"http://localhost:$port"))
389389
})
390390
)
391391

@@ -1685,7 +1685,7 @@ lazy val awsLambdaZioTests: ProjectMatrix = (projectMatrix in file("serverless/a
16851685
Seq(
16861686
Tests.Setup(() => {
16871687
val samReady = PollingUtils.poll(60.seconds, 1.second) {
1688-
sam.isAlive() && PollingUtils.urlConnectionAvailable(new URL(s"http://127.0.0.1:3002/health"))
1688+
sam.isAlive() && PollingUtils.urlConnectionAvailable(url(s"http://127.0.0.1:3002/health"))
16891689
}
16901690
if (!samReady) {
16911691
sam.destroy()
@@ -1758,7 +1758,7 @@ lazy val awsLambdaCatsEffectTests: ProjectMatrix = (projectMatrix in file("serve
17581758
Seq(
17591759
Tests.Setup(() => {
17601760
val samReady = PollingUtils.poll(60.seconds, 1.second) {
1761-
sam.isAlive() && PollingUtils.urlConnectionAvailable(new URL(s"http://127.0.0.1:3001/health"))
1761+
sam.isAlive() && PollingUtils.urlConnectionAvailable(url(s"http://127.0.0.1:3001/health"))
17621762
}
17631763
if (!samReady) {
17641764
sam.destroy()
@@ -1825,7 +1825,7 @@ lazy val awsCdkTests: ProjectMatrix = (projectMatrix in file("serverless/aws/cdk
18251825
log.error(s"Failed to run cdk synth for aws cdk tests (exit code: $cdkExit)")
18261826
} else {
18271827
val samReady = PollingUtils.poll(60.seconds, 1.second) {
1828-
sam.isAlive() && PollingUtils.urlConnectionAvailable(new URL(s"http://127.0.0.1:3010/health"))
1828+
sam.isAlive() && PollingUtils.urlConnectionAvailable(url(s"http://127.0.0.1:3010/health"))
18291829
}
18301830
if (!samReady) {
18311831
sam.destroy()

0 commit comments

Comments
 (0)