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"); spy = sinon.spy(Zotero.HTTP, "_requestInternal");
setTimeout(() => { setTimeout(() => {
cancel(); cancel();
}, 80); }, 300);
var e = await getPromiseError( var e = await getPromiseError(
Zotero.HTTP.request( Zotero.HTTP.request(
"GET", "GET",
baseURL + "error", baseURL + "error",
{ {
errorDelayIntervals: [10, 10, 150], errorDelayIntervals: [10, 10, 600],
cancellerReceiver: function () { cancellerReceiver: function () {
cancel = arguments[0]; cancel = arguments[0];
} }