From 18fb4257e5a9debef2baac5f8397912a2a3ad9dc Mon Sep 17 00:00:00 2001 From: lenkan Date: Thu, 11 Apr 2024 09:53:34 +0200 Subject: [PATCH] fix flaky integration test --- examples/integration-scripts/multisig-vlei-issuance.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/integration-scripts/multisig-vlei-issuance.test.ts b/examples/integration-scripts/multisig-vlei-issuance.test.ts index f6a7b06a..930d95ff 100644 --- a/examples/integration-scripts/multisig-vlei-issuance.test.ts +++ b/examples/integration-scripts/multisig-vlei-issuance.test.ts @@ -1261,9 +1261,10 @@ async function getOrCreateAID( await waitOperation(client, await result.op()); aid = await client.identifiers().get(name); - await client + const op = await client .identifiers() .addEndRole(name, 'agent', client!.agent!.pre); + await waitOperation(client, await op.op()); console.log(name, 'AID:', aid.prefix); } return aid;