Skip to content

Commit

Permalink
Increase timeout to fix race condition of abort and timeout test
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Aug 12, 2023
1 parent ad57f7c commit 812c62a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/test/unit/client/fetch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ describe("FetchError", function () {
setTimeout(() => controller.abort(), 0);
signal = controller.signal;
} else if (timeout) {
signal = AbortSignal.timeout(10);
signal = AbortSignal.timeout(50);
}
await expect(fetch(url, {signal})).to.be.rejected.then((error: FetchError) => {
expect(error.type).to.be.equal(testCase.errorType);
Expand Down

0 comments on commit 812c62a

Please sign in to comment.