Skip to content

Commit

Permalink
use sleep step
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangsu committed Sep 12, 2022
1 parent 9713f8f commit 7e2a62b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/cucumber/steps/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -4562,12 +4562,10 @@ module.exports = function getSteps(options) {
);

Then(
'I forward {int} empty rounds with transient account.',
async function (roundNum) {
const sp = await this.v2Client.getTransactionParams().do();

const sleep = ms => new Promise(r => setTimeout(r, ms));
await sleep(2000)
'I sleep for {int} seconds for indexer to digest things down.',
async (secondSpan) => {
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
await sleep(secondSpan * 1000);
}
);

Expand Down

0 comments on commit 7e2a62b

Please sign in to comment.