diff --git a/integration-tests/injecting-multiple-manager-operations-in-a-block.spec.ts b/integration-tests/injecting-multiple-manager-operations-in-a-block.spec.ts index c04d50d386..7a4379109b 100644 --- a/integration-tests/injecting-multiple-manager-operations-in-a-block.spec.ts +++ b/integration-tests/injecting-multiple-manager-operations-in-a-block.spec.ts @@ -12,8 +12,10 @@ CONFIGS().forEach(({ lib, rpc, setup }) => { it('Verify that doing transfers without awaiting the confirmation after each will fail', async (done) => { try { - const op1 = await Tezos.contract.transfer({ to: 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', amount: 1 }); - const op2 = await Tezos.contract.transfer({ to: 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', amount: 2 }); + const op1Promise = Tezos.contract.transfer({ to: 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', amount: 1 }); + const op2Promise = Tezos.contract.transfer({ to: 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', amount: 2 }); + + const [op1, op2] = await Promise.all([op1Promise, op2Promise]) await op1.confirmation(); await op2.confirmation();