Commit f12a6c5
fix(e2e): scope rate_limit_attempts cleanup to exclude brute-force
The blanket DELETE FROM rate_limit_attempts in global-setup raced
with brute-force.spec.ts: another shard's global-setup could wipe
the brute-force test's accumulated failed-attempt rows mid-test,
causing attempt 6 to get "Invalid login credentials" instead of
the expected "temporarily locked" message.
Scope the DELETE to NOT LIKE 'brute-force-test-%', preserving rows
created by brute-force.spec.ts while still cleaning up cross-run
lockout accumulation from e2e/mailinator test users.
Run 24255175890: firefox/chromium/webkit gen-3/4 all failed on
brute-force.spec.ts:79 with this exact race condition.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 84e1acf commit f12a6c5
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
812 | 816 | | |
813 | 817 | | |
814 | 818 | | |
| |||
0 commit comments