mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 08:34:07 -08:00
Fix typos
This commit is contained in:
parent
15f94a6a4a
commit
e1c2a64232
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue