From 1c361dd4950a4e1d7cf59cf0df04be3cb415efdf Mon Sep 17 00:00:00 2001 From: Bertrand Juglas Date: Tue, 12 Jul 2022 17:32:02 +0200 Subject: [PATCH] fix: wait 2 seconds of streaming --- packages/payment-processor/test/payment/erc777-stream.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/payment-processor/test/payment/erc777-stream.test.ts b/packages/payment-processor/test/payment/erc777-stream.test.ts index daaf6d058c..7255cde1d7 100644 --- a/packages/payment-processor/test/payment/erc777-stream.test.ts +++ b/packages/payment-processor/test/payment/erc777-stream.test.ts @@ -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);