Skip to content

Commit

Permalink
test(indy-sdk): wait before resolving ledger objects (openwallet-foun…
Browse files Browse the repository at this point in the history
…dation#1340)

Signed-off-by: Ariel Gentile <[email protected]>
  • Loading branch information
genaris authored Feb 24, 2023
1 parent 518e5e4 commit d5e34ff
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d5e34ff

Please sign in to comment.