Update task runner module internal test

This commit is contained in:
Iván Ovejero 2024-11-07 14:32:26 +01:00
parent a1e3001251
commit 15f94a6a4a
No known key found for this signature in database

View file

@ -3,9 +3,6 @@ import Container from 'typedi';
import { TaskRunnerModule } from '@/runners/task-runner-module';
import { InternalTaskRunnerDisconnectAnalyzer } from '../../../src/runners/internal-task-runner-disconnect-analyzer';
import { TaskRunnerWsServer } from '../../../src/runners/runner-ws-server';
describe('TaskRunnerModule in internal_childprocess mode', () => {
const runnerConfig = Container.get(TaskRunnersConfig);
runnerConfig.port = 0; // Random port
@ -30,11 +27,5 @@ describe('TaskRunnerModule in internal_childprocess mode', () => {
// Act
await module.start();
});
it('should use InternalTaskRunnerDisconnectAnalyzer', () => {
const wsServer = Container.get(TaskRunnerWsServer);
expect(wsServer.getDisconnectAnalyzer()).toBeInstanceOf(InternalTaskRunnerDisconnectAnalyzer);
});
});
});