Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
un-rearrange test for async perf
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjpaterno committed Jan 20, 2020
1 parent 8d900ac commit b74051c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/requests.js
Expand Up @@ -1072,7 +1072,6 @@ const tests = function(web3) {

// queue some transactions
const pendingTransactionHashes = [send("eth_sendTransaction", [txData]), send("eth_sendTransaction", [txData])];
const transactionHashes = (await Promise.all(pendingTransactionHashes)).map((response) => response.result);

let pendingNextBlockNumber;
if (hasSubscriptions) {
Expand Down Expand Up @@ -1105,6 +1104,7 @@ const tests = function(web3) {

// subscribe to `newHeads` if subscriptions are supported
const subscriptionId = hasSubscriptions ? (await send("eth_subscribe", ["newHeads"])).result : null;
const transactionHashes = (await Promise.all(pendingTransactionHashes)).map((response) => response.result);

// start the miner again
await send("miner_start");
Expand Down

0 comments on commit b74051c

Please sign in to comment.