|
2 | 2 | Event, |
3 | 3 | EventType, |
4 | 4 | ExecutionStatus, |
5 | | - GetDurableExecutionCommandOutput, |
6 | 5 | GetDurableExecutionHistoryCommandOutput, |
7 | 6 | } from "@aws-sdk/client-lambda"; |
8 | 7 | import { |
@@ -57,7 +56,7 @@ function createMockEvent(overrides: Partial<Event> = {}): Event { |
57 | 56 |
|
58 | 57 | function createMockHistoryResponse( |
59 | 58 | overrides: Partial<GetDurableExecutionHistoryCommandOutput> = {}, |
60 | | - includeSuccessEvent: boolean = true, |
| 59 | + includeSuccessEvent = true, |
61 | 60 | ): GetDurableExecutionHistoryCommandOutput { |
62 | 61 | const successEvent = createMockEvent({ |
63 | 62 | EventType: EventType.ExecutionSucceeded, |
@@ -86,7 +85,7 @@ function createHistoryPoller(options: CreateHistoryPollerOptions = {}): { |
86 | 85 | const testExecutionState = new TestExecutionState(); |
87 | 86 |
|
88 | 87 | // Create an unhandled promise by default which may create an unhandled rejection if something breaks |
89 | | - testExecutionState.createExecutionPromise(); |
| 88 | + void testExecutionState.createExecutionPromise(); |
90 | 89 |
|
91 | 90 | const onOperationEventsReceived = jest.fn(); |
92 | 91 |
|
@@ -640,7 +639,6 @@ describe("HistoryPoller", () => { |
640 | 639 |
|
641 | 640 | it("should not overlap polling cycles when API calls are slow", async () => { |
642 | 641 | const getHistoryCallTimes: number[] = []; |
643 | | - const getExecutionCallTimes: number[] = []; |
644 | 642 |
|
645 | 643 | const { poller, mockApiClient } = createHistoryPoller({ |
646 | 644 | pollInterval: 100, // Short poll interval |
|
0 commit comments