Commit 8b8d061
committed
Fix test_package_endpoint_throttling by clearing cache in setUp
The throttle cache was not being reset between test runs, causing
request counts from previous tests to spill over and trigger the
rate limit prematurely.
Fix by calling cache.clear() at the start of setUp().
Fixes #<replace-with-your-issue-number>
Signed-off-by: clencyc <clency2023@gmail.com>1 parent fa44d92 commit 8b8d061
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
0 commit comments