From 9873230bef6195562267d312b5559f02b3f2eb6f Mon Sep 17 00:00:00 2001 From: Ilya Date: Thu, 21 Sep 2023 13:35:19 +0300 Subject: [PATCH] add time delay --- auth_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/auth_test.go b/auth_test.go index 4b01d44..d41fe0a 100644 --- a/auth_test.go +++ b/auth_test.go @@ -235,7 +235,8 @@ func TestVerifyMessageWithSigProof_NonMerkalized(t *testing.T) { authInstance, err := NewVerifier(verificationKeyloader, stateResolvers, WithDocumentLoader(schemaLoader)) require.NoError(t, err) - err = authInstance.VerifyAuthResponse(context.Background(), message, request) + err = authInstance.VerifyAuthResponse(context.Background(), message, request, + pubsignals.WithAcceptedProofGenerationDelay(proofGenerationDelay)) require.Nil(t, err) schemaLoader.assert(t) } @@ -674,7 +675,8 @@ func TestVerifyAuthResponseWithEmptyReq(t *testing.T) { authInstance, err := NewVerifier(verificationKeyloader, stateResolvers, WithDocumentLoader(schemaLoader)) require.NoError(t, err) - err = authInstance.VerifyAuthResponse(context.Background(), resp, authReq) + err = authInstance.VerifyAuthResponse(context.Background(), resp, authReq, + pubsignals.WithAcceptedProofGenerationDelay(proofGenerationDelay)) require.NoError(t, err) schemaLoader.assert(t) }