Skip to content

Commit

Permalink
a couple of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TonioMacaronio committed Dec 2, 2019
1 parent 971eb80 commit 87127e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/tests/loadtest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ let TRANSFERS_TOTAL = 100;
ethWallets.push(ethWallet);
syncWallets.push(syncWallet);

// Create wallets
var i = 1;
while (i < CLIENTS_TOTAL) {
let ew = ethers.Wallet.createRandom().connect(ethersProvider);
Expand All @@ -59,12 +60,14 @@ let TRANSFERS_TOTAL = 100;
i++;
}

// Deposits
i = 0;
while (i < CLIENTS_TOTAL) {
await depositEther(ethWallets[0], syncWallets[i], DEPOSIT_AMOUNT);
i++;
}

// Transfers
i = 0;
while(i < TRANSFERS_TOTAL) {
let number1 = randomClientNumber();
Expand All @@ -79,6 +82,7 @@ let TRANSFERS_TOTAL = 100;
i++;
}

// Withdraws
i = 0;
while (i < CLIENTS_TOTAL) {
await withdrawEther(ethWallets[i], syncWallets[i]);
Expand Down

0 comments on commit 87127e2

Please sign in to comment.