Skip to content

Commit a9ba3f0

Browse files
committed
Bump test timeout
1 parent 38ba308 commit a9ba3f0

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.projen/tasks.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
2525
] /* Build dependencies for this module. */,
2626
// packageName: undefined, /* The "name" in package.json. */
2727
jestOptions: {
28-
extraCliOptions: ['--testTimeout=300000'],
28+
extraCliOptions: ['--testTimeout=400000'],
2929
},
3030
eslint: false,
3131
});

test/function.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ afterEach(async () => {
6868
});
6969

7070
describe('When bundlingStrategy is set to BundlingStrategy.SOURCE', () => {
71-
jest.setTimeout(20000); // we are doing integration tests with the file system so give tests more time
72-
7371
test('Create a function from basic_app', async () => {
7472
const { app, stack } = await createStack();
7573

@@ -98,7 +96,7 @@ describe('When bundlingStrategy is set to BundlingStrategy.SOURCE', () => {
9896
expect(functions).toHaveLength(1);
9997
const contents = await getAssetContent(functions[0], app);
10098
expect(contents).toContain('handler.py');
101-
});
99+
}, 40000); // need long timeout as working with file system
102100

103101
test('Create a function from basic_app with no .py index extension', async () => {
104102
const { stack } = await createStack();
@@ -190,7 +188,7 @@ describe('When bundlingStrategy is set to BundlingStrategy.SOURCE', () => {
190188
]) {
191189
expect(contents).toContain(entry);
192190
}
193-
});
191+
}, 40000); // need long timeout as working with file system
194192

195193
test('Create multiple functions with workspaces_app', async () => {
196194
const { app, stack } = await createStack('wstest');

0 commit comments

Comments
 (0)