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");
|
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];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue