Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Aug 13, 2024
1 parent 2a73d78 commit 9b7c874
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { Push } from '@/push';
import { ActiveWorkflowManager } from '@/ActiveWorkflowManager';
import { mockInstance } from '@test/mocking';
import { RedisClientService } from '@/services/redis/redis-client.service';
import type { MainResponseReceivedHandlerOptions } from '../orchestration/main/types';

const instanceSettings = Container.get(InstanceSettings);
const redisClientService = mockInstance(RedisClientService);
Expand Down Expand Up @@ -96,8 +97,9 @@ describe('Orchestration Service', () => {
test('should handle worker responses', async () => {
const response = await handleWorkerResponseMessageMain(
JSON.stringify(workerRestartEventBusResponse),
mock<MainResponseReceivedHandlerOptions>(),
);
expect(response.command).toEqual('restartEventBus');
expect(response?.command).toEqual('restartEventBus');
});

test('should handle command messages from others', async () => {
Expand Down

0 comments on commit 9b7c874

Please sign in to comment.