test: update tcp config opts type

This commit is contained in:
Kamil Myśliwiec
2024-11-18 13:14:59 +01:00
parent 3267135f2d
commit bc31b5cff5

View File

@@ -4,6 +4,7 @@ import {
Injectable,
Module,
} from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import {
AsyncOptions,
ClientTCP,
@@ -11,11 +12,10 @@ import {
MessagePattern,
MicroserviceOptions,
Payload,
TcpClientOptions,
TcpOptions,
Transport,
} from '@nestjs/microservices';
import { expect } from 'chai';
import { NestFactory } from '@nestjs/core';
let port: number;
@@ -25,7 +25,7 @@ do {
@Injectable()
class RpcOptionsProvider {
getOptions(): TcpClientOptions {
getOptions(): TcpOptions {
return {
transport: Transport.TCP,
options: {