Skip to content

Commit

Permalink
Merge pull request #2191 from ecadlabs/lima-test
Browse files Browse the repository at this point in the history
Try fix test
  • Loading branch information
roxaneletourneau authored Dec 2, 2022
2 parents 77e3cc4 + 3c18d7e commit 6fb3b5d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6fb3b5d

Please sign in to comment.