1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-25 08:09:38 +02:00
Maybe/test
Zach Gollwitzer 018310d4d1 Fix rate limiting errors in API transaction controller tests
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.
2025-07-08 11:46:33 -04:00
..
channels/application_cable Initial commit 2024-02-02 09:05:04 -06:00
components/previews Multi-step account forms + clearer balance editing (#2427) 2025-07-03 09:33:07 -04:00
controllers Fix rate limiting errors in API transaction controller tests 2025-07-08 11:46:33 -04:00
fixtures Checkpoint 2025-07-08 10:25:16 -04:00
helpers Rework account views and addition flow (#1324) 2024-10-18 14:37:42 -04:00
integration Fix OAuth mobile app support with custom URL schemes 2025-06-18 05:38:23 -05:00
interfaces Multi-step account forms + clearer balance editing (#2427) 2025-07-03 09:33:07 -04:00
jobs Improve account sync performance, handle concurrent market data syncing (#2236) 2025-05-15 10:19:56 -04:00
lib Data provider simplification, tests, and documentation (#1997) 2025-03-17 11:54:53 -04:00
mailers Allow users to update their email address (#1745) 2025-01-31 11:29:49 -06:00
models Multi-step account forms + clearer balance editing (#2427) 2025-07-03 09:33:07 -04:00
services Add comprehensive API v1 with OAuth and API key authentication (#2389) 2025-06-17 15:57:05 -05:00
support Checkpoint 2025-07-08 10:25:16 -04:00
system Multi-step account forms + clearer balance editing (#2427) 2025-07-03 09:33:07 -04:00
vcr_cassettes feat(assistant): improve chat functionality and update tests - refactor configurable model, update OpenAI provider, enhance chat form UI, and improve test coverage (#2316) 2025-05-27 05:04:58 -05:00
application_system_test_case.rb Pre-launch design sync with Figma spec (#2154) 2025-04-30 18:14:22 -04:00
i18n_test.rb New Design System + Codebase Refresh (#1823) 2025-02-21 11:57:59 -05:00
test_helper.rb Configure PlaidSandbox to use sandbox environment regardless of Rails config and set test environment variables for Plaid. Temporarily disable AutoSync functionality in tests. 2025-06-01 06:37:46 -05:00