Skip to content

Commit 8531e9f

Browse files
committed
fix eslint errors
1 parent 7dbc1b3 commit 8531e9f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

packages/aws-durable-execution-sdk-js-testing/src/test-runner/cloud/history-poller.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import {
22
Event,
3-
GetDurableExecutionCommandOutput,
43
GetDurableExecutionHistoryCommandOutput,
54
GetDurableExecutionHistoryRequest,
6-
GetDurableExecutionRequest,
75
OperationStatus,
86
} from "@aws-sdk/client-lambda";
97
import { OperationEvents } from "../common/operations/operation-with-data";
@@ -133,6 +131,7 @@ export class HistoryPoller {
133131
const lastPage = pages.at(-1);
134132
this.events.push(...(lastPage ?? []));
135133

134+
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
136135
const historyEventType = historyEventTypes[
137136
lastEvent.EventType
138137
] as (typeof executionHistoryEventTypes)[keyof typeof executionHistoryEventTypes];

packages/aws-durable-execution-sdk-js-testing/src/test-runner/cloud/utils/__tests__/history-poller.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {
22
Event,
33
EventType,
44
ExecutionStatus,
5-
GetDurableExecutionCommandOutput,
65
GetDurableExecutionHistoryCommandOutput,
76
} from "@aws-sdk/client-lambda";
87
import {
@@ -57,7 +56,7 @@ function createMockEvent(overrides: Partial<Event> = {}): Event {
5756

5857
function createMockHistoryResponse(
5958
overrides: Partial<GetDurableExecutionHistoryCommandOutput> = {},
60-
includeSuccessEvent: boolean = true,
59+
includeSuccessEvent = true,
6160
): GetDurableExecutionHistoryCommandOutput {
6261
const successEvent = createMockEvent({
6362
EventType: EventType.ExecutionSucceeded,
@@ -86,7 +85,7 @@ function createHistoryPoller(options: CreateHistoryPollerOptions = {}): {
8685
const testExecutionState = new TestExecutionState();
8786

8887
// Create an unhandled promise by default which may create an unhandled rejection if something breaks
89-
testExecutionState.createExecutionPromise();
88+
void testExecutionState.createExecutionPromise();
9089

9190
const onOperationEventsReceived = jest.fn();
9291

@@ -640,7 +639,6 @@ describe("HistoryPoller", () => {
640639

641640
it("should not overlap polling cycles when API calls are slow", async () => {
642641
const getHistoryCallTimes: number[] = [];
643-
const getExecutionCallTimes: number[] = [];
644642

645643
const { poller, mockApiClient } = createHistoryPoller({
646644
pollInterval: 100, // Short poll interval

0 commit comments

Comments
 (0)