diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index afe98136..39759e08 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,4 +29,4 @@ jobs: node-version: ${{ matrix.node-version }} - run: yarn install - run: yarn run lint - - run: DEBUG="ioredis:*" yarn run test:e2e + - run: yarn run test:e2e diff --git a/test/controller.e2e-spec.ts b/test/controller.e2e-spec.ts index 57370e3c..f38c2c03 100644 --- a/test/controller.e2e-spec.ts +++ b/test/controller.e2e-spec.ts @@ -5,11 +5,11 @@ import { FastifyAdapter } from '@nestjs/platform-fastify'; import { Test, TestingModule } from '@nestjs/testing'; import { ThrottlerGuard } from '@nestjs/throttler'; import Redis, { Cluster } from 'ioredis'; -import { ClusterControllerModule } from './app/controllers/cluster-controller.module'; +// import { ClusterControllerModule } from './app/controllers/cluster-controller.module'; import { ControllerModule } from './app/controllers/controller.module'; import { httPromise } from './utility/httpromise'; import { redis } from './utility/redis'; -import { cluster } from './utility/redis-cluster'; +// import { cluster } from './utility/redis-cluster'; async function flushdb(redisOrCluster: Redis | Cluster) { if (redisOrCluster instanceof Redis) { @@ -24,10 +24,10 @@ async function flushdb(redisOrCluster: Redis | Cluster) { } } +// ${cluster} | ${'cluster'} describe.each` instance | instanceType ${redis} | ${'single'} - ${cluster} | ${'cluster'} `('Redis $instanceType instance', ({ instance: redisOrCluster }: { instance: Redis | Cluster }) => { afterAll(async () => { await redisOrCluster.quit(); @@ -52,11 +52,11 @@ describe.each` ], }; - if (redisOrCluster instanceof Cluster) { - config.imports.push(ClusterControllerModule); - } else { - config.imports.push(ControllerModule); - } + // if (redisOrCluster instanceof Cluster) { + // config.imports.push(ClusterControllerModule); + // } else { + config.imports.push(ControllerModule); + // } const moduleFixture: TestingModule = await Test.createTestingModule(config).compile(); app = moduleFixture.createNestApplication(adapter);