mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
refactor from async.parallel to Promise.all for concurrent tests.
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
import {
|
||||
ArgumentsHost,
|
||||
Catch,
|
||||
ExceptionFilter,
|
||||
HttpException,
|
||||
INestApplication,
|
||||
RpcExceptionFilter,
|
||||
} from '@nestjs/common';
|
||||
import { RpcException, Transport } from '@nestjs/microservices';
|
||||
import { Transport } from '@nestjs/microservices';
|
||||
import { Test } from '@nestjs/testing';
|
||||
import { expect } from 'chai';
|
||||
import * as request from 'supertest';
|
||||
@@ -15,7 +10,6 @@ import { KafkaMessagesController } from '../src/kafka/kafka.messages.controller'
|
||||
import { UserDto } from '../src/kafka/dtos/user.dto';
|
||||
import { UserEntity } from '../src/kafka/entities/user.entity';
|
||||
import { BusinessDto } from '../src/kafka/dtos/business.dto';
|
||||
import * as async from 'async';
|
||||
|
||||
describe('Kafka transport', () => {
|
||||
let server;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import * as util from 'util';
|
||||
import { Body, Controller, HttpCode, Post, Query } from '@nestjs/common';
|
||||
import {
|
||||
Client,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import * as util from 'util';
|
||||
import { Controller } from '@nestjs/common';
|
||||
import { Client, ClientProxy, EventPattern, MessagePattern, MessageRequest, Transport } from '@nestjs/microservices';
|
||||
import { Logger } from '@nestjs/common/services/logger.service';
|
||||
@@ -7,7 +6,6 @@ import { BusinessDto } from './dtos/business.dto';
|
||||
import { UserEntity } from './entities/user.entity';
|
||||
import { BusinessEntity } from './entities/business.entity';
|
||||
import { UserDto } from './dtos/user.dto';
|
||||
import { KafkaClient } from 'kafka-node';
|
||||
import { map } from 'bluebird';
|
||||
|
||||
@Controller()
|
||||
|
||||
Reference in New Issue
Block a user