diff --git a/tests/integration-tests/src/test/kotlin/steps/credentials/IssueCredentialsSteps.kt b/tests/integration-tests/src/test/kotlin/steps/credentials/IssueCredentialsSteps.kt index caa5a14c55..147e5989cf 100644 --- a/tests/integration-tests/src/test/kotlin/steps/credentials/IssueCredentialsSteps.kt +++ b/tests/integration-tests/src/test/kotlin/steps/credentials/IssueCredentialsSteps.kt @@ -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 { @@ -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.", ) { diff --git a/tests/integration-tests/src/test/kotlin/steps/proofs/PresentProofSteps.kt b/tests/integration-tests/src/test/kotlin/steps/proofs/PresentProofSteps.kt index 9d2d09665d..d6452a45e8 100644 --- a/tests/integration-tests/src/test/kotlin/steps/proofs/PresentProofSteps.kt +++ b/tests/integration-tests/src/test/kotlin/steps/proofs/PresentProofSteps.kt @@ -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 { @@ -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 {