Make Zotero.HTTP retry test a bit more robust

This commit is contained in:
Dan Stillman 2021-08-27 17:12:28 -04:00
parent 10f2400c59
commit dea4a47b69

View file

@ -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];
}