From 39580effcb5420b5cc73766d5e7be929ebe112ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Lenksj=C3=B6?= <5889538+lenkan@users.noreply.github.com> Date: Thu, 11 Apr 2024 19:34:36 +0200 Subject: [PATCH] fix flaky integration test (#244) --- 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;