From 916adc28f3f2ae01a05b96e6be02faa290738526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20My=C5=9Bliwiec?= Date: Mon, 20 Jan 2025 08:42:18 +0100 Subject: [PATCH] test: delete removed keepconnectionalive attribute --- integration/typeorm/src/app.module.ts | 1 - integration/typeorm/src/async-class-options.module.ts | 1 - integration/typeorm/src/async-existing-options.module.ts | 1 - integration/typeorm/src/async-options.module.ts | 1 - integration/typeorm/src/database.module.ts | 1 - sample/05-sql-typeorm/test/users/users.e2e-spec.ts | 6 +++--- sample/13-mongo-typeorm/src/app.module.ts | 2 +- 7 files changed, 4 insertions(+), 9 deletions(-) diff --git a/integration/typeorm/src/app.module.ts b/integration/typeorm/src/app.module.ts index 6ba462128b9..36fc5b8356b 100644 --- a/integration/typeorm/src/app.module.ts +++ b/integration/typeorm/src/app.module.ts @@ -14,7 +14,6 @@ import { PhotoModule } from './photo/photo.module'; database: 'test', entities: [Photo], synchronize: true, - keepConnectionAlive: true, retryAttempts: 2, retryDelay: 1000, }), diff --git a/integration/typeorm/src/async-class-options.module.ts b/integration/typeorm/src/async-class-options.module.ts index 2eda3fb3b4a..37ed3686535 100644 --- a/integration/typeorm/src/async-class-options.module.ts +++ b/integration/typeorm/src/async-class-options.module.ts @@ -18,7 +18,6 @@ class ConfigService implements TypeOrmOptionsFactory { database: 'test', entities: [Photo], synchronize: true, - keepConnectionAlive: true, retryAttempts: 2, retryDelay: 1000, }; diff --git a/integration/typeorm/src/async-existing-options.module.ts b/integration/typeorm/src/async-existing-options.module.ts index af4da814f11..016c35406b5 100644 --- a/integration/typeorm/src/async-existing-options.module.ts +++ b/integration/typeorm/src/async-existing-options.module.ts @@ -18,7 +18,6 @@ class ConfigService implements TypeOrmOptionsFactory { database: 'test', entities: [Photo], synchronize: true, - keepConnectionAlive: true, retryAttempts: 2, retryDelay: 1000, }; diff --git a/integration/typeorm/src/async-options.module.ts b/integration/typeorm/src/async-options.module.ts index 1733edf04c0..cda3a84d6c9 100644 --- a/integration/typeorm/src/async-options.module.ts +++ b/integration/typeorm/src/async-options.module.ts @@ -15,7 +15,6 @@ import { PhotoModule } from './photo/photo.module'; database: 'test', entities: [Photo], synchronize: true, - keepConnectionAlive: true, retryAttempts: 2, retryDelay: 1000, }), diff --git a/integration/typeorm/src/database.module.ts b/integration/typeorm/src/database.module.ts index 3628233bb9b..74110f3f12c 100644 --- a/integration/typeorm/src/database.module.ts +++ b/integration/typeorm/src/database.module.ts @@ -18,7 +18,6 @@ export class DatabaseModule { database: 'test', entities: [Photo], synchronize: true, - keepConnectionAlive: true, retryAttempts: 2, retryDelay: 1000, }), diff --git a/sample/05-sql-typeorm/test/users/users.e2e-spec.ts b/sample/05-sql-typeorm/test/users/users.e2e-spec.ts index 4ba372c4e6c..8f5a67caf5d 100644 --- a/sample/05-sql-typeorm/test/users/users.e2e-spec.ts +++ b/sample/05-sql-typeorm/test/users/users.e2e-spec.ts @@ -1,9 +1,9 @@ -import { Test, TestingModule } from '@nestjs/testing'; import { INestApplication } from '@nestjs/common'; -import * as request from 'supertest'; -import { UsersModule } from '../../src/users/users.module'; +import { Test, TestingModule } from '@nestjs/testing'; import { TypeOrmModule } from '@nestjs/typeorm'; +import * as request from 'supertest'; import { CreateUserDto } from '../../src/users/dto/create-user.dto'; +import { UsersModule } from '../../src/users/users.module'; describe('Users - /users (e2e)', () => { const users = { diff --git a/sample/13-mongo-typeorm/src/app.module.ts b/sample/13-mongo-typeorm/src/app.module.ts index df15819d5ac..1406b773de4 100644 --- a/sample/13-mongo-typeorm/src/app.module.ts +++ b/sample/13-mongo-typeorm/src/app.module.ts @@ -1,7 +1,7 @@ import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; -import { PhotoModule } from './photo/photo.module'; import { Photo } from './photo/photo.entity'; +import { PhotoModule } from './photo/photo.module'; @Module({ imports: [