Skip to content

Commit

Permalink
[frontend] chore: Increasing api timeout (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
helloitsdave authored Jun 16, 2024
1 parent fe5eb21 commit ac7ed31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/api/apiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const api = axios.create({
'Content-Type': 'application/json',
Authorization: `Bearer ${localStorage.getItem('token')}`,
},
timeout: 2 * 60 * 1000,
signal: AbortSignal.timeout(2 * 60 * 1000),
});

api.interceptors.request.use((config) => {
Expand Down

1 comment on commit ac7ed31

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

96.91%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   App.tsx87.50%75%96%30–31, 40–41
   NoteApp.tsx94.44%100%97.04%72–76
src/api
   apiService.ts87.50%85.71%88%100, 40, 40–45, 94–99
src/components
   Header.tsx100%100%100%
   Login.tsx81.82%100%98.72%32, 32–33
   Note.tsx100%100%100%
   NoteForm.tsx100%100%100%
   NoteFormModal.tsx100%100%100%
   NoteGrid.tsx100%100%100%
   RegistrationForm.tsx86.67%100%97.04%57, 57–61
   RegistrationLink.tsx100%100%100%
   Spinner.tsx100%100%100%

Please sign in to comment.