Enable attachment backup uploading
This commit is contained in:
parent
94a262b799
commit
4254356812
27 changed files with 2054 additions and 534 deletions
|
@ -30,15 +30,14 @@ describe('exponential backoff utilities', () => {
|
|||
const options = {
|
||||
maxBackoffTime: 10000,
|
||||
multiplier: 2,
|
||||
firstBackoffTime: 1000,
|
||||
firstBackoffs: [1000],
|
||||
};
|
||||
assert.strictEqual(exponentialBackoffSleepTime(1, options), 0);
|
||||
assert.strictEqual(exponentialBackoffSleepTime(2, options), 1000);
|
||||
assert.strictEqual(exponentialBackoffSleepTime(3, options), 2000);
|
||||
assert.strictEqual(exponentialBackoffSleepTime(4, options), 4000);
|
||||
assert.strictEqual(exponentialBackoffSleepTime(5, options), 8000);
|
||||
assert.strictEqual(exponentialBackoffSleepTime(1, options), 1000);
|
||||
assert.strictEqual(exponentialBackoffSleepTime(2, options), 2000);
|
||||
assert.strictEqual(exponentialBackoffSleepTime(3, options), 4000);
|
||||
assert.strictEqual(exponentialBackoffSleepTime(4, options), 8000);
|
||||
assert.strictEqual(exponentialBackoffSleepTime(5, options), 10000);
|
||||
assert.strictEqual(exponentialBackoffSleepTime(6, options), 10000);
|
||||
assert.strictEqual(exponentialBackoffSleepTime(7, options), 10000);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue