Skip to content

Commit

Permalink
Increase timeout in fork tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Dec 16, 2020
1 parent d50c6c3 commit 074bf43
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ const PRECOMPILES_COUNT = 8;

describe("Eth module", function () {
PROVIDERS.forEach(({ name, useProvider, isFork, chainId }) => {
if (isFork) {
this.timeout(50000);
}

describe(`${name} provider`, function () {
setCWD();
useProvider();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ async function deployContract(
}

describe("Evm module", function () {
PROVIDERS.forEach(({ name, useProvider }) => {
PROVIDERS.forEach(({ name, useProvider, isFork }) => {
if (isFork) {
this.timeout(50000);
}

describe(`${name} provider`, function () {
setCWD();
useProvider();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import { PROVIDERS } from "../../helpers/providers";

describe("Hardhat module", function () {
PROVIDERS.forEach(({ name, useProvider, isFork }) => {
if (isFork) {
this.timeout(50000);
}

describe(`${name} provider`, function () {
setCWD();
useProvider();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import { setCWD } from "../../helpers/cwd";
import { PROVIDERS } from "../../helpers/providers";

describe("Net module", function () {
PROVIDERS.forEach(({ name, useProvider, networkId }) => {
PROVIDERS.forEach(({ name, useProvider, networkId, isFork }) => {
if (isFork) {
this.timeout(50000);
}

describe(`Provider ${name}`, function () {
setCWD();
useProvider();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import { setCWD } from "../../helpers/cwd";
import { PROVIDERS } from "../../helpers/providers";

describe("Web3 module", function () {
PROVIDERS.forEach(({ name, useProvider }) => {
PROVIDERS.forEach(({ name, useProvider, isFork }) => {
if (isFork) {
this.timeout(50000);
}

describe(`Provider ${name}`, function () {
setCWD();
useProvider();
Expand Down

0 comments on commit 074bf43

Please sign in to comment.