Skip to content

Commit

Permalink
test(e2e): cleanup timeout ms (#1072)
Browse files Browse the repository at this point in the history
* test(e2e): cleanup timeout ms

* remove comments
  • Loading branch information
TarikGul committed Oct 3, 2022
1 parent 5b9fca9 commit 935905d
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions e2e-tests/runtimeTests.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ const config = JSON.parse(
) as IEnvChainConfig;

const chain = config.chain as ChainSpec;
const TIMEOUT_MS = 60000;

const { blocks, accounts, runtime, paras } = endpoints[chain];

describe('Runtime Tests for blocks', () => {
/**
* Allows a timeout of 30 seconds for each response.
*/
jest.setTimeout(30000);
jest.setTimeout(TIMEOUT_MS);

/**
* Test runtimes for `/blocks`
Expand All @@ -56,10 +54,7 @@ describe('Runtime Tests for blocks', () => {
});

describe('Runtime Tests for accounts', () => {
/**
* Allows a timeout of 30 seconds for each response.
*/
jest.setTimeout(30000);
jest.setTimeout(TIMEOUT_MS);

/**
* Test runtiems for `/accounts/*`
Expand All @@ -78,10 +73,7 @@ describe('Runtime Tests for accounts', () => {
});

describe('Runtime Tests for `/runtime/*`', () => {
/**
* Allows a timeout of 30 seconds for each response.
*/
jest.setTimeout(30000);
jest.setTimeout(TIMEOUT_MS);

if (runtime.length) {
test.each(runtime)(
Expand All @@ -97,10 +89,7 @@ describe('Runtime Tests for `/runtime/*`', () => {
});

describe('Runtime Tests for `/paras/*`', () => {
/**
* Allows a timeout of 30 seconds for each response.
*/
jest.setTimeout(30000);
jest.setTimeout(TIMEOUT_MS);

if (paras.length) {
test.each(paras)(
Expand Down

0 comments on commit 935905d

Please sign in to comment.