chore: add timeout mechanism for fetch calls (#3649)

This commit is contained in:
Kunal Kundu
2020-05-12 19:21:13 +05:30
committed by GitHub
parent 334304ed52
commit 3e34e52440
11 changed files with 66 additions and 28 deletions

View File

@ -117,6 +117,7 @@ describe('github API', () => {
Authorization: 'token token',
'Content-Type': 'application/json; charset=utf-8',
},
signal: expect.any(AbortSignal),
});
});
@ -163,6 +164,7 @@ describe('github API', () => {
Authorization: 'promise-token',
'Content-Type': 'application/json; charset=utf-8',
},
signal: expect.any(AbortSignal),
});
});
});

View File

@ -43,6 +43,7 @@ describe('github backend implementation', () => {
headers: {
Authorization: 'token token',
},
signal: expect.any(AbortSignal),
});
});