Make Zotero.HTTP retry test a bit more robust
This commit is contained in:
parent
10f2400c59
commit
dea4a47b69
1 changed files with 2 additions and 2 deletions
|
@ -181,13 +181,13 @@ describe("Zotero.HTTP", function () {
|
|||
spy = sinon.spy(Zotero.HTTP, "_requestInternal");
|
||||
setTimeout(() => {
|
||||
cancel();
|
||||
}, 80);
|
||||
}, 300);
|
||||
var e = await getPromiseError(
|
||||
Zotero.HTTP.request(
|
||||
"GET",
|
||||
baseURL + "error",
|
||||
{
|
||||
errorDelayIntervals: [10, 10, 150],
|
||||
errorDelayIntervals: [10, 10, 600],
|
||||
cancellerReceiver: function () {
|
||||
cancel = arguments[0];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue