Skip to content

Commit

Permalink
fix: timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Amuhar committed Nov 7, 2024
1 parent 4d46abd commit 39724a6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions test/duplicates-v3.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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

Expand All @@ -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();
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/docker-containers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 39724a6

Please sign in to comment.