mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-25 08:09:38 +02:00
When tests run in parallel, they were sharing the same API key fixtures which caused Redis rate limit counters to accumulate across test workers, leading to unexpected rate limit errors. Changes: - Create fresh API keys in setup instead of using fixtures - Each API key gets a unique auto-generated ID - Clear existing active keys to avoid validation conflicts - Use different sources (web/mobile) for multiple test keys - Clear Redis rate limit data in setup to ensure clean state - Update api_headers helper to use display_key instead of plain_key This follows the existing pattern used in UsageControllerTest for handling API keys that interact with Redis state. |
||
---|---|---|
.. | ||
channels/application_cable | ||
components/previews | ||
controllers | ||
fixtures | ||
helpers | ||
integration | ||
interfaces | ||
jobs | ||
lib | ||
mailers | ||
models | ||
services | ||
support | ||
system | ||
vcr_cassettes | ||
application_system_test_case.rb | ||
i18n_test.rb | ||
test_helper.rb |