Skip to content

Commit

Permalink
fix: wait 2 seconds of streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
bertux committed Jul 12, 2022
1 parent 6087ea7 commit 1c361dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/payment-processor/test/payment/erc777-stream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ describe('erc777-stream', () => {
// use the framework to get the SuperToken
const daix = await sf.loadSuperToken('fDAIx');

// wait 2 seconds of streaming to avoid failing
await new Promise((r) => setTimeout(r, 2000));

// Paying fDAIX stream request
tx = await completeErc777StreamRequest(validRequest, wallet);
confirmedTx = await tx.wait(1);
Expand Down

0 comments on commit 1c361dd

Please sign in to comment.