Skip to content

Commit

Permalink
fix: Extend axios timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesin11 committed Jul 26, 2020
1 parent 14e783e commit c2bdd80
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/circleci_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class CircleciClient {
constructor(token: string, baseUrl?: string) {
this.axios = axios.create({
baseURL: baseUrl ?? 'https://circleci.com/api/v1.1',
timeout: 1000,
timeout: 3000,
auth: {
username: token,
password: '',
Expand Down
2 changes: 1 addition & 1 deletion src/client/github_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class GithubClient {

this.axios = axios.create({
baseURL: (baseUrl) ? baseUrl : 'https://api.github.com',
timeout: 1000,
timeout: 3000,
auth: { username: '', password: token },
});

Expand Down
2 changes: 1 addition & 1 deletion src/client/jenkins_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export class JenkinsClient {

this.axios = axios.create({
baseURL: baseUrl,
timeout: 1000,
timeout: 3000,
auth,
});

Expand Down

0 comments on commit c2bdd80

Please sign in to comment.