Skip to content

Commit

Permalink
increase it test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
zalbia committed Jul 1, 2023
1 parent 86f78b6 commit 721c56c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ object WebhookServerIntegrationSpec extends ZIOSpecDefault {
} yield assertCompletes
}
} yield testResult
} @@ timeout(5.minutes) @@ TestAspect.withLiveClock @@ TestAspect.withLiveConsole
} @@ timeout(7.minutes) @@ TestAspect.withLiveClock @@ TestAspect.withLiveConsole
).provide(integrationEnv) @@ sequential

private def dumpRepoAndUndeliveredEvents(delivered: SubscriptionRef[Set[RuntimeFlags]]) =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -759,13 +759,12 @@ object WebhookServerSpec extends ZIOSpecDefault {
List(Right(WebhookHttpResponse(200)), Right(WebhookHttpResponse(200)))
)
event1 <- ZIO.scoped {
WebhookServer.start.flatMap { _ =>
for {
_ <- TestWebhookRepo.setWebhook(webhook)
_ <- TestWebhookEventRepo.createEvent(testEvents(0))
event1 <- events.take.as(true)
} yield event1
}
for {
_ <- WebhookServer.start
_ <- TestWebhookRepo.setWebhook(webhook)
_ <- TestWebhookEventRepo.createEvent(testEvents(0))
event1 <- events.take.as(true)
} yield event1
}
_ <- TestWebhookEventRepo.createEvent(testEvents(1))
take <- events.take.timeout(1.second)
Expand Down

0 comments on commit 721c56c

Please sign in to comment.