Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.2.3 #247

Merged
merged 10 commits into from
Nov 21, 2024
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

## [0.2.3] 2024-11-21

### Updated

- Update timeout on API request to 14 seconds

## [0.2.2] 2024-11-20

### Updated
Expand Down
4 changes: 2 additions & 2 deletions app/src/utils/api.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ describe("apiResponse", () => {

const apiCall = apiResponse(mockApiUrl);

jest.advanceTimersByTime(7000);
jest.advanceTimersByTime(14000);

await expect(apiCall).rejects.toEqual(
new Error("apiResponse: Request timed out")
);

jest.useRealTimers();
}, 10000);
}, 20000);
});
2 changes: 1 addition & 1 deletion app/src/utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export const apiResponse = async (
apiUrl += queryString;
}

const timeout = 7000;
const timeout = 14000;

const fetchWithTimeout = (url: string, opts: RequestInit) => {
return Promise.race([
Expand Down
Loading