Skip to content

Commit

Permalink
øker timeout pga github actions er treig
Browse files Browse the repository at this point in the history
Co-authored-by: Håkon Arneng Holmstedt <hakon.arneng.holmstedt@nav.no>
  • Loading branch information
davidsteinsland and hholmste committed Nov 13, 2024
1 parent 0188fd2 commit ebcd985
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/kotlin/no/nav/helse/spokelse/AbstractE2ETest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.TestInstance
import org.skyscreamer.jsonassert.JSONAssert
import org.slf4j.LoggerFactory
import java.time.Duration
import java.time.LocalDate
import java.util.*
import java.util.concurrent.TimeUnit
Expand Down Expand Up @@ -81,7 +82,7 @@ internal abstract class AbstractE2ETest {
requestBody: String? = null,
forventetHttpStatus: Int = 200,
forventetResponseBody: String? = null,
timeout: Int = 5,
timeout: Duration = Duration.ofSeconds(40),
authorized: Boolean = true
) {
naisfulTestApp(
Expand All @@ -96,7 +97,7 @@ internal abstract class AbstractE2ETest {
objectMapper = jacksonObjectMapper().registerModule(JavaTimeModule()).disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS),
meterRegistry = PrometheusMeterRegistry(PrometheusConfig.DEFAULT),
) {
Awaitility.await().atMost(timeout.toLong(), TimeUnit.SECONDS).untilAsserted {
Awaitility.await().atMost(timeout).untilAsserted {
val response = runBlocking {
client.request("/$path") {
method = HttpMethod.parse(httpMethod)
Expand Down

0 comments on commit ebcd985

Please sign in to comment.