Skip to content

Commit

Permalink
Increase wait times in some tests
Browse files Browse the repository at this point in the history
Signed-off-by: Shota Jolbordi <[email protected]>
  • Loading branch information
Shota Jolbordi committed Jun 18, 2024
1 parent fa91779 commit 0d8582a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import net.serenitybdd.rest.SerenityRest
import net.serenitybdd.screenplay.Actor
import org.apache.http.HttpStatus.*
import org.hyperledger.identus.client.models.*
import kotlin.time.Duration.Companion.seconds

class IssueCredentialsSteps {

Expand Down Expand Up @@ -208,6 +209,7 @@ class IssueCredentialsSteps {
)

Wait.until(
10.seconds,
errorMessage = "Issuer was unable to issue the credential! " +
"Protocol state did not achieve ${IssueCredentialRecord.ProtocolState.CREDENTIAL_SENT} state.",
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class PresentProofSteps {
@Then("{actor} has the proof verified")
fun faberHasTheProofVerified(faber: Actor) {
Wait.until(
timeout = 30.seconds,
timeout = 60.seconds,
errorMessage = "Presentation did not achieve PresentationVerified state!",
) {
val proofEvent = ListenToEvents.with(faber).presentationEvents.lastOrNull {
Expand All @@ -116,7 +116,7 @@ class PresentProofSteps {
@Then("{actor} sees the proof returned verification failed")
fun verifierSeesTheProofReturnedVerificationFailed(verifier: Actor) {
Wait.until(
timeout = 60.seconds,
timeout = 120.seconds,
errorMessage = "Presentation did not achieve PresentationVerificationFailed state!",
) {
val proofEvent = ListenToEvents.with(verifier).presentationEvents.lastOrNull {
Expand Down

0 comments on commit 0d8582a

Please sign in to comment.