Skip to content

Commit

Permalink
refactor: remove manually set timeouts in favor of config
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyar committed Oct 24, 2023
1 parent 50c80d8 commit 2e94731
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion subgraphs/isolated-pools/tests/integration/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ describe('Pools', function () {
const syncDelay = 6000;

before(async function () {
this.timeout(500000); // sometimes it takes a long time
const signers = await ethers.getSigners();
[root] = await ethers.getSigners();
acc1 = signers[1];
Expand Down
2 changes: 0 additions & 2 deletions subgraphs/isolated-pools/tests/integration/poolRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ describe('Pool Registry', function () {
const syncDelay = 2000;

before(async function () {
this.timeout(500000); // sometimes it takes a long time

[root] = await ethers.getSigners();
poolRegistry = await ethers.getContract('PoolRegistry');

Expand Down
1 change: 0 additions & 1 deletion subgraphs/isolated-pools/tests/integration/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { SUBGRAPH_ACCOUNT, SUBGRAPH_NAME, SYNC_DELAY } from './constants';

describe('Deploy Subgraph', function () {
it('should deploy subgraph', async function () {
this.timeout(500000); // sometimes it takes a long time
const root = `${__dirname}/../..`;

await deploy({
Expand Down
2 changes: 0 additions & 2 deletions subgraphs/isolated-pools/tests/integration/vTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ describe('VToken events', function () {
const borrowAmount = scaleValue(0.000025, 18);

before(async function () {
this.timeout(500000); // sometimes it takes a long time

const signers = await ethers.getSigners();
[_root, liquidator, borrower, liquidator2, borrower2, supplier1, supplier2] = signers;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { SYNC_DELAY } from './utils/constants';

describe('AccessControlManager', function () {
before(async function () {
this.timeout(50000000); // sometimes it takes a long time

await waitForSubgraphToBeSynced(SYNC_DELAY);
});

Expand Down
4 changes: 0 additions & 4 deletions subgraphs/venus-governance/tests/integration/alpha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ describe('GovernorAlpha', function () {
let user4: SignerWithAddress;

before(async function () {
this.timeout(10000000); // sometimes it takes a long time
governorAlpha = await ethers.getContract('GovernorAlpha');
governorAlpha2 = await ethers.getContract('GovernorAlpha2');
signers = await ethers.getSigners();
Expand Down Expand Up @@ -121,9 +120,6 @@ describe('GovernorAlpha', function () {
});

describe('Alpha2', function () {
before(async function () {
this.timeout(10000000); // sometimes it takes a long time
});
it('indexes created proposals - alpha2', async function () {
const [_, user1] = signers;
await enfranchiseAccount(user1, scaleValue(600000, 18));
Expand Down
1 change: 0 additions & 1 deletion subgraphs/venus-governance/tests/integration/bravo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ describe('GovernorBravo', function () {
let governorBravoDelegator: Contract;

before(async function () {
this.timeout(50000000); // sometimes it takes a long time
signers = await ethers.getSigners();
governorBravoDelegator = await ethers.getContract('GovernorBravoDelegatorV1');
const governorBravoDelegateV1 = await ethers.getContract('GovernorBravoDelegateV1');
Expand Down
1 change: 0 additions & 1 deletion subgraphs/venus-governance/tests/integration/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { SUBGRAPH_ACCOUNT, SUBGRAPH_NAME, SYNC_DELAY } from './utils/constants';

describe('Deploy Subgraph', function () {
it('should deploy subgraph', async function () {
this.timeout(600000); // sometimes it takes a long time
const root = `${__dirname}/../..`;

await deploy({
Expand Down
1 change: 0 additions & 1 deletion subgraphs/venus-governance/tests/integration/xvsVault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ describe('XVS Vault and Delegation', function () {
const amount = scaleValue(100000, 18);

before(async function () {
this.timeout(50000000); // sometimes it takes a long time
signers = await ethers.getSigners();

xvs = await ethers.getContract('XVS');
Expand Down

0 comments on commit 2e94731

Please sign in to comment.