We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a4e5a3 commit 26f24bdCopy full SHA for 26f24bd
1 file changed
tests/cdk-rds.test.ts
@@ -19,6 +19,9 @@ import {
19
ListBucketsCommand
20
} from '@aws-sdk/client-s3';
21
22
+// Increase timeout for all tests to 30 seconds
23
+jest.setTimeout(30000);
24
+
25
const config = {
26
endpoint: 'http://localhost:4566',
27
region: 'us-east-1',
@@ -34,6 +37,12 @@ const secretsClient = new SecretsManagerClient(config);
34
37
const s3Client = new S3Client(config);
35
38
36
39
describe('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
46
test('Lambda function exists', async () => {
47
try {
48
const command = new GetFunctionCommand({
0 commit comments