mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
test: delete removed keepconnectionalive attribute
This commit is contained in:
@@ -14,7 +14,6 @@ import { PhotoModule } from './photo/photo.module';
|
|||||||
database: 'test',
|
database: 'test',
|
||||||
entities: [Photo],
|
entities: [Photo],
|
||||||
synchronize: true,
|
synchronize: true,
|
||||||
keepConnectionAlive: true,
|
|
||||||
retryAttempts: 2,
|
retryAttempts: 2,
|
||||||
retryDelay: 1000,
|
retryDelay: 1000,
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ class ConfigService implements TypeOrmOptionsFactory {
|
|||||||
database: 'test',
|
database: 'test',
|
||||||
entities: [Photo],
|
entities: [Photo],
|
||||||
synchronize: true,
|
synchronize: true,
|
||||||
keepConnectionAlive: true,
|
|
||||||
retryAttempts: 2,
|
retryAttempts: 2,
|
||||||
retryDelay: 1000,
|
retryDelay: 1000,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ class ConfigService implements TypeOrmOptionsFactory {
|
|||||||
database: 'test',
|
database: 'test',
|
||||||
entities: [Photo],
|
entities: [Photo],
|
||||||
synchronize: true,
|
synchronize: true,
|
||||||
keepConnectionAlive: true,
|
|
||||||
retryAttempts: 2,
|
retryAttempts: 2,
|
||||||
retryDelay: 1000,
|
retryDelay: 1000,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import { PhotoModule } from './photo/photo.module';
|
|||||||
database: 'test',
|
database: 'test',
|
||||||
entities: [Photo],
|
entities: [Photo],
|
||||||
synchronize: true,
|
synchronize: true,
|
||||||
keepConnectionAlive: true,
|
|
||||||
retryAttempts: 2,
|
retryAttempts: 2,
|
||||||
retryDelay: 1000,
|
retryDelay: 1000,
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ export class DatabaseModule {
|
|||||||
database: 'test',
|
database: 'test',
|
||||||
entities: [Photo],
|
entities: [Photo],
|
||||||
synchronize: true,
|
synchronize: true,
|
||||||
keepConnectionAlive: true,
|
|
||||||
retryAttempts: 2,
|
retryAttempts: 2,
|
||||||
retryDelay: 1000,
|
retryDelay: 1000,
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { Test, TestingModule } from '@nestjs/testing';
|
|
||||||
import { INestApplication } from '@nestjs/common';
|
import { INestApplication } from '@nestjs/common';
|
||||||
import * as request from 'supertest';
|
import { Test, TestingModule } from '@nestjs/testing';
|
||||||
import { UsersModule } from '../../src/users/users.module';
|
|
||||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
|
import * as request from 'supertest';
|
||||||
import { CreateUserDto } from '../../src/users/dto/create-user.dto';
|
import { CreateUserDto } from '../../src/users/dto/create-user.dto';
|
||||||
|
import { UsersModule } from '../../src/users/users.module';
|
||||||
|
|
||||||
describe('Users - /users (e2e)', () => {
|
describe('Users - /users (e2e)', () => {
|
||||||
const users = {
|
const users = {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Module } from '@nestjs/common';
|
import { Module } from '@nestjs/common';
|
||||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
import { PhotoModule } from './photo/photo.module';
|
|
||||||
import { Photo } from './photo/photo.entity';
|
import { Photo } from './photo/photo.entity';
|
||||||
|
import { PhotoModule } from './photo/photo.module';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
|
|||||||
Reference in New Issue
Block a user