Skip to content

Commit e3b607f

Browse files
author
Phoebe Schmidt
authored
fix(config): boost axios timeout from 10s to 30s (#117)
1 parent fa36813 commit e3b607f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/tasks/init-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function logHandler (level, data) {
88

99
export default function initClient (opts) {
1010
const defaultOpts = {
11-
timeout: 10000,
11+
timeout: 30000,
1212
logHandler
1313
}
1414
const config = {

test/unit/tasks/init-client.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ test('does create clients and passes custom logHandler', () => {
4747
integration: opts.integration
4848
})
4949
expect(contentfulManagement.createClient.mock.calls[0][0]).toHaveProperty('logHandler')
50-
expect(contentfulManagement.createClient.mock.calls[0][0].timeout).toEqual(10000)
50+
expect(contentfulManagement.createClient.mock.calls[0][0].timeout).toEqual(30000)
5151
expect(contentfulManagement.createClient.mock.calls).toHaveLength(1)
5252

5353
// Call passed log handler

0 commit comments

Comments
 (0)