diff --git a/packages/indy-sdk/tests/indy-sdk-anoncreds-registry.e2e.test.ts b/packages/indy-sdk/tests/indy-sdk-anoncreds-registry.e2e.test.ts index a0548c0223..186d1d9a15 100644 --- a/packages/indy-sdk/tests/indy-sdk-anoncreds-registry.e2e.test.ts +++ b/packages/indy-sdk/tests/indy-sdk-anoncreds-registry.e2e.test.ts @@ -62,6 +62,9 @@ describe('IndySdkAnonCredsRegistry', () => { }, }) + // Wait some time before resolving credential definition object + await new Promise((res) => setTimeout(res, 1000)) + const schemaResponse = await indySdkAnonCredsRegistry.getSchema( agent.context, `TL1EaPFCZ8Si5aUrqScBDt:2:test - 11:${dynamicVersion}` @@ -139,6 +142,9 @@ describe('IndySdkAnonCredsRegistry', () => { registrationMetadata: {}, }) + // Wait some time before resolving credential definition object + await new Promise((res) => setTimeout(res, 1000)) + const credentialDefinitionResponse = await indySdkAnonCredsRegistry.getCredentialDefinition( agent.context, credentialDefinitionResult.credentialDefinitionState.credentialDefinitionId as string