Skip to content

Commit

Permalink
try fix cypress test with firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad-Altabba committed Sep 4, 2023
1 parent 444255d commit 9348f48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ describe('rpc with block', () => {
from: acc.address,
value: '0x1',
times: 1,
waitAfterEachSend: 500,
});
const data = {
pending: 'pending',
Expand All @@ -124,7 +125,7 @@ describe('rpc with block', () => {
from: acc.address,
value: '0x1',
times: count,
waitAfterEachSend: 200,
waitAfterEachSend: 500,
});
const receiptAfter = res[res.length - 1];
const dataAfter = {
Expand Down
1 change: 1 addition & 0 deletions packages/web3-eth/test/integration/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const sendFewTxes = async ({
}),
);
if (waitAfterEachSend) {
// to ensure the block got mined on dev environment
// eslint-disable-next-line no-await-in-loop
await new Promise<void>(resolve => {
setTimeout(resolve, waitAfterEachSend);
Expand Down

0 comments on commit 9348f48

Please sign in to comment.