Skip to content

Commit 4c3da98

Browse files
committed
test(sdk): update api-storage test for timeout configuration
Update test expectation to verify LambdaClient is initialized with timeout settings.
1 parent 7926070 commit 4c3da98

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/aws-durable-execution-sdk-js/src/storage/api-storage.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ describe("ApiStorage", () => {
5656

5757
test("should initialize with correct endpoint and region", () => {
5858
// Verify that LambdaClient was constructed with the correct parameters
59-
expect(LambdaClient).toHaveBeenCalledWith();
59+
expect(LambdaClient).toHaveBeenCalledWith({
60+
requestHandler: {
61+
connectionTimeout: 5000,
62+
socketTimeout: 50000,
63+
},
64+
});
6065
});
6166

6267
test("should call getStepData with correct parameters", async () => {

0 commit comments

Comments
 (0)