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

test: increase infura test timeouts so they stop failing in CI #642

Merged
merged 5 commits into from
Sep 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/local/forking/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,5 @@ describe("Forking Snapshots", () => {

value = await instance.methods.value().call();
assert.strictEqual(value, "2");
});
}).timeout(5000);
});
14 changes: 7 additions & 7 deletions test/smoke/forking/infura/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const logger = {
}
};

describe("Simple Infura", function() {
describe("Simple Infura", () => {
let INFURA_KEY;

before(function() {
Expand Down Expand Up @@ -41,7 +41,7 @@ describe("Simple Infura", function() {
assert.strictEqual(block.transactions.length, numTransactions);

await new Promise((resolve) => provider.close(resolve));
});
}).timeout(5000);

it("forks mainnet wss", async function() {
// https://etherscan.io/block/10661638
Expand All @@ -63,7 +63,7 @@ describe("Simple Infura", function() {
assert.strictEqual(block.transactions.length, numTransactions);

await new Promise((resolve) => provider.close(resolve));
});
}).timeout(5000);

it("forks goerli https", async function() {
// https://goerli.etherscan.io/block/3226587
Expand All @@ -85,7 +85,7 @@ describe("Simple Infura", function() {
assert.strictEqual(block.transactions.length, numTransactions);

await new Promise((resolve) => provider.close(resolve));
});
}).timeout(5000);

it("forks ropsten https", async function() {
// https://ropsten.etherscan.io/block/8500030
Expand All @@ -107,7 +107,7 @@ describe("Simple Infura", function() {
assert.strictEqual(block.transactions.length, numTransactions);

await new Promise((resolve) => provider.close(resolve));
});
}).timeout(5000);

it("forks rinkeby https", async function() {
// https://rinkeby.etherscan.io/block/7019987
Expand All @@ -129,7 +129,7 @@ describe("Simple Infura", function() {
assert.strictEqual(block.transactions.length, numTransactions);

await new Promise((resolve) => provider.close(resolve));
});
}).timeout(5000);

it("forks kovan https", async function() {
// https://kovan.etherscan.io/block/20255583
Expand All @@ -151,5 +151,5 @@ describe("Simple Infura", function() {
assert.strictEqual(block.transactions.length, numTransactions);

await new Promise((resolve) => provider.close(resolve));
});
}).timeout(5000);
});