From 39724a632f334a38a4b51d1482a8a6e51e374643 Mon Sep 17 00:00:00 2001 From: Anna Mukharram Date: Thu, 7 Nov 2024 21:50:54 +0400 Subject: [PATCH] fix: timeout --- test/duplicates-v3.e2e-spec.ts | 28 ++++++++++++------------- test/helpers/docker-containers/utils.ts | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/test/duplicates-v3.e2e-spec.ts b/test/duplicates-v3.e2e-spec.ts index 2fac2faf..1e140d04 100644 --- a/test/duplicates-v3.e2e-spec.ts +++ b/test/duplicates-v3.e2e-spec.ts @@ -35,7 +35,7 @@ import { import { cutModulesKeys } from './helpers/reduce-keys'; jest.mock('../src/transport/stomp/stomp.client.ts'); -jest.setTimeout(40_000); +jest.setTimeout(80_000); describe('Duplicates e2e tests', () => { let providerService: ProviderService; @@ -140,13 +140,13 @@ describe('Duplicates e2e tests', () => { await startContainerIfNotRunning(postgresContainer); - const psqlStream = await postgresContainer.attach({ - stream: true, - stdout: true, - stderr: true, - }); + // const psqlStream = await postgresContainer.attach({ + // stream: true, + // stdout: true, + // stderr: true, + // }); - psqlStream.pipe(process.stdout); + // psqlStream.pipe(process.stdout); // TODO: check running status container is not enough, add helthcheck @@ -158,13 +158,13 @@ describe('Duplicates e2e tests', () => { await startContainerIfNotRunning(keysApiContainer); - const stream = await keysApiContainer.attach({ - stream: true, - stdout: true, - stderr: true, - }); + // const stream = await keysApiContainer.attach({ + // stream: true, + // stdout: true, + // stderr: true, + // }); - stream.pipe(process.stdout); + // stream.pipe(process.stdout); // TODO: clarify name await waitForServiceToBeReady(); @@ -212,7 +212,7 @@ describe('Duplicates e2e tests', () => { lidoWC = await getLidoWC(); const { signature } = await signDeposit(duplicatePK, duplicateSK, lidoWC); duplicateDepositSignature = signature; - }, 120_000); + }, 180_000); afterAll(async () => { await keysApiContainer.stop(); diff --git a/test/helpers/docker-containers/utils.ts b/test/helpers/docker-containers/utils.ts index 774040db..74b783d9 100644 --- a/test/helpers/docker-containers/utils.ts +++ b/test/helpers/docker-containers/utils.ts @@ -191,7 +191,7 @@ async function createNetwork(docker: Docker, name) { export async function setupContainers() { const docker = new Docker(); - await createNetwork(docker, 'e2e_network'); + // await createNetwork(docker, 'e2e_network'); // Create PostgreSQL and KAPI containers on the same network const psqlContainer = await pullAndCreatePsqlContainer(docker, 'e2e_network');