File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ import {
1919 ListBucketsCommand
2020} from '@aws-sdk/client-s3' ;
2121
22+ // Increase timeout for all tests to 30 seconds
23+ jest . setTimeout ( 30000 ) ;
24+
2225const config = {
2326 endpoint : 'http://localhost:4566' ,
2427 region : 'us-east-1' ,
@@ -34,6 +37,12 @@ const secretsClient = new SecretsManagerClient(config);
3437const s3Client = new S3Client ( config ) ;
3538
3639describe ( 'CDK RDS Stack' , ( ) => {
40+ // Add beforeAll to ensure LocalStack is ready
41+ beforeAll ( async ( ) => {
42+ // Wait for a few seconds to ensure LocalStack is fully initialized
43+ await new Promise ( resolve => setTimeout ( resolve , 5000 ) ) ;
44+ } ) ;
45+
3746 test ( 'Lambda function exists' , async ( ) => {
3847 try {
3948 const command = new GetFunctionCommand ( {
You can’t perform that action at this time.
0 commit comments