Skip to content

Commit 00225ac

Browse files
committed
Merge branch 'fix-webserviceshosttest' into 'master'
fix: increase timeouts in WebServicesHostTest to avoid test failure on slow environments See merge request processm-team/processm!347 Former-commit-id: ec0e800954ab92da722cf254a9af4101ae5f9fe1
2 parents a65d46d + f5781d5 commit 00225ac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

processm.services/src/test/kotlin/processm/services/WebServicesHostTest.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class WebServicesHostTest {
2121
customizeClient {
2222
setSSLContext(SSLContextBuilder.create().loadTrustMaterial(TrustSelfSignedStrategy()).build())
2323
setSSLHostnameVerifier(NoopHostnameVerifier())
24-
connectTimeout = 1000
25-
connectionRequestTimeout = 1000
26-
socketTimeout = 1000
24+
connectTimeout = 5_000
25+
connectionRequestTimeout = 10_000
26+
socketTimeout = 5_000
2727
}
2828
}
2929
}
@@ -35,16 +35,16 @@ class WebServicesHostTest {
3535
@Test
3636
fun startStopStartStopTest() = runBlocking {
3737
for (i in 0..2) {
38-
host.start()
39-
var response = client.get(baseURIs).bodyAsText()
4038
try {
39+
host.start()
40+
val response = client.get(baseURIs).bodyAsText()
4141
assertTrue(response.startsWith("<!DOCTYPE html>", ignoreCase = true))
4242
} finally {
4343
host.stop()
4444
}
4545

4646
assertFails {
47-
response = client.get(baseURIs).bodyAsText()
47+
val response = client.get(baseURIs).bodyAsText()
4848
}
4949
}
5050
}

0 commit comments

Comments
 (0)