From 0d8582a2f6606b4c52674e9cfdab34921f35c104 Mon Sep 17 00:00:00 2001 From: Shota Jolbordi Date: Tue, 18 Jun 2024 16:45:48 +0400 Subject: [PATCH] Increase wait times in some tests Signed-off-by: Shota Jolbordi --- .../test/kotlin/steps/credentials/IssueCredentialsSteps.kt | 2 ++ .../src/test/kotlin/steps/proofs/PresentProofSteps.kt | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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 {