From 6e677ee37d756d22b3af924db44a3570c97423b9 Mon Sep 17 00:00:00 2001 From: Alexey Yarmosh Date: Mon, 13 Jan 2025 18:07:10 +0100 Subject: [PATCH] feat: debug e2e --- .github/workflows/e2e.yml | 1 + src/lib/redis/measurement-client.ts | 1 + test/e2e/docker.ts | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index faebb8f5..10a29c11 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -45,6 +45,7 @@ jobs: run: | cp config/redis/.env.redis ./ docker compose up -d + docker ps -a - name: Build run: | npm ci diff --git a/src/lib/redis/measurement-client.ts b/src/lib/redis/measurement-client.ts index f3dd0fd7..a3986f11 100644 --- a/src/lib/redis/measurement-client.ts +++ b/src/lib/redis/measurement-client.ts @@ -24,6 +24,7 @@ export const initMeasurementRedisClient = async () => { }; export const createMeasurementRedisClient = (options?: Partial): RedisClusterInternal => { + console.log('redis.clusterMeasurements.nodes', config.get<{ [index: string]: string }>('redis.clusterMeasurements.nodes')); return createRedisClusterInternal({ defaults: config.get('redis.sharedOptions'), rootNodes: Object.values(config.get<{ [index: string]: string }>('redis.clusterMeasurements.nodes')).map(url => ({ url })), diff --git a/test/e2e/docker.ts b/test/e2e/docker.ts index 1f3474ce..9e821e5e 100644 --- a/test/e2e/docker.ts +++ b/test/e2e/docker.ts @@ -134,7 +134,7 @@ class DockerManager { const containerInfo = containers.find(c => c.Names.includes(`/${name}`)); if (!containerInfo) { - logger.warn('Container not found:'); + logger.warn('Container not found.', containers); return { container: null, state: null }; }