mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 00:24:07 -08:00
Fix task-runner-process.test.ts
This commit is contained in:
parent
1a1961d969
commit
4e3020a100
|
@ -1,6 +1,7 @@
|
|||
import { TaskRunnersConfig } from '@n8n/config';
|
||||
import Container from 'typedi';
|
||||
|
||||
import { InternalTaskRunnerDisconnectAnalyzer } from '@/runners/internal-task-runner-disconnect-analyzer';
|
||||
import { TaskRunnerWsServer } from '@/runners/runner-ws-server';
|
||||
import { TaskBroker } from '@/runners/task-broker.service';
|
||||
import { TaskRunnerProcess } from '@/runners/task-runner-process';
|
||||
|
@ -29,6 +30,8 @@ describe('TaskRunnerProcess', () => {
|
|||
await taskRunnerServer.start();
|
||||
// Set the port to the actually used port
|
||||
runnerConfig.port = taskRunnerServer.port;
|
||||
const analyzer = Container.get(InternalTaskRunnerDisconnectAnalyzer);
|
||||
taskRunnerWsServer.setDisconnectAnalyzer(analyzer);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
|
Loading…
Reference in a new issue