Skip to content

Commit

Permalink
rm: old test
Browse files Browse the repository at this point in the history
  • Loading branch information
grutt committed Feb 4, 2024
1 parent a78baf9 commit 862c422
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions typescript-sdk/src/clients/worker/worker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 862c422

Please sign in to comment.