fix(mail): resend 2925 code after quick initial poll

This commit is contained in:
InkCrow
2026-05-13 02:19:00 +08:00
parent 6bd743cbd3
commit 24a0b8a45d
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -1056,7 +1056,7 @@ test('step 8 completes when polling fails but recovery probe shows oauth consent
]);
});
test('step 8 uses a fixed 10-minute lookback window and delays 2925 resend until after one full poll', async () => {
test('step 8 uses a fixed 10-minute lookback window and delays 2925 resend until after two quick polls', async () => {
let capturedOptions = null;
let ensureCalls = 0;
let ensureOptions = null;
@@ -1149,7 +1149,7 @@ test('step 8 uses a fixed 10-minute lookback window and delays 2925 resend until
assert.equal(capturedOptions.filterAfterTimestamp, 300000);
assert.equal(capturedOptions.resendIntervalMs, 0);
assert.equal(capturedOptions.maxResendRequests, 1);
assert.equal(capturedOptions.initialPollMaxAttempts, 5);
assert.equal(capturedOptions.initialPollMaxAttempts, 2);
assert.equal(capturedOptions.targetEmail, '');
assert.equal(capturedOptions.beforeSubmit, undefined);
assert.equal(typeof capturedOptions.getRemainingTimeMs, 'function');