Fix typos

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

View file

@ -18,7 +18,7 @@ describe('TaskRunnerProcess', () => {
const runnerProcess = Container.get(TaskRunnerProcess); const runnerProcess = Container.get(TaskRunnerProcess);
const taskBroker = Container.get(TaskBroker); const taskBroker = Container.get(TaskBroker);
const taskRunnerService = Container.get(TaskRunnerWsServer); const taskRunnerWsServer = Container.get(TaskRunnerWsServer);
const startLauncherSpy = jest.spyOn(runnerProcess, 'startLauncher'); const startLauncherSpy = jest.spyOn(runnerProcess, 'startLauncher');
const startNodeSpy = jest.spyOn(runnerProcess, 'startNode'); const startNodeSpy = jest.spyOn(runnerProcess, 'startNode');
@ -44,7 +44,7 @@ describe('TaskRunnerProcess', () => {
killNodeSpy.mockClear(); killNodeSpy.mockClear();
}); });
const getNumConnectedRunners = () => taskRunnerService.runnerConnections.size; const getNumConnectedRunners = () => taskRunnerWsServer.runnerConnections.size;
const getNumRegisteredRunners = () => taskBroker.getKnownRunners().size; const getNumRegisteredRunners = () => taskBroker.getKnownRunners().size;
it('should start and connect the task runner', async () => { it('should start and connect the task runner', async () => {
@ -59,7 +59,7 @@ describe('TaskRunnerProcess', () => {
expect(getNumRegisteredRunners()).toBe(1); expect(getNumRegisteredRunners()).toBe(1);
}); });
it('should stop an disconnect the task runner', async () => { it('should stop and disconnect the task runner', async () => {
// Arrange // Arrange
await runnerProcess.start(); await runnerProcess.start();