Skip to content

Commit 1c361dd

Browse files
committed
fix: wait 2 seconds of streaming
1 parent 6087ea7 commit 1c361dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/payment-processor/test/payment/erc777-stream.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ describe('erc777-stream', () => {
216216
// use the framework to get the SuperToken
217217
const daix = await sf.loadSuperToken('fDAIx');
218218

219+
// wait 2 seconds of streaming to avoid failing
220+
await new Promise((r) => setTimeout(r, 2000));
221+
219222
// Paying fDAIX stream request
220223
tx = await completeErc777StreamRequest(validRequest, wallet);
221224
confirmedTx = await tx.wait(1);

0 commit comments

Comments
 (0)