From 862c422be42ca0d5419e325c1df1c13287ae9352 Mon Sep 17 00:00:00 2001 From: g Date: Sun, 4 Feb 2024 17:32:25 -0500 Subject: [PATCH] rm: old test --- .../src/clients/worker/worker.test.ts | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/typescript-sdk/src/clients/worker/worker.test.ts b/typescript-sdk/src/clients/worker/worker.test.ts index a17171958..775868062 100644 --- a/typescript-sdk/src/clients/worker/worker.test.ts +++ b/typescript-sdk/src/clients/worker/worker.test.ts @@ -151,24 +151,7 @@ describe('Worker', () => { }); }); - describe('handle_cancel_step_run', () => { - it('should cancel a step run', () => { - const worker = new Worker(hatchet, { name: 'WORKER_NAME' }); - - const cancelSpy = jest.fn().mockReturnValue(undefined); - - worker.futures = { - [mockCancel.stepRunId]: { - cancel: cancelSpy, - } as any, - }; - - worker.handleCancelStepRun(mockCancel); - - expect(cancelSpy).toHaveBeenCalledTimes(1); - expect(worker.futures[mockCancel.stepRunId]).toBeUndefined(); - }); - }); + describe('handle_cancel_step_run', () => {}); describe('exit_gracefully', () => { xit('should call exit_gracefully on SIGTERM', async () => {