A fully-searchable and accessible archive of court data including growing repositories of opinions, oral arguments, judges, judicial financial records, and federal filings.
This PR addresses a flaky test identified in issue #4624. The test was failing because the number of database queries was lower than expected.
Django's caching mechanism can sometimes reduce the number of database queries, leading to unexpected results. To resolve this, we've implemented a solution suggested in Django tickets #11505 and #23746. By clearing the cache before counting the queries, we ensure accurate results and prevent the test from failing.
Since applying this fix, the test has been consistently passing.
This PR addresses a flaky test identified in issue #4624. The test was failing because the number of database queries was lower than expected.
Django's caching mechanism can sometimes reduce the number of database queries, leading to unexpected results. To resolve this, we've implemented a solution suggested in Django tickets #11505 and #23746. By clearing the cache before counting the queries, we ensure accurate results and prevent the test from failing.
Since applying this fix, the test has been consistently passing.
Links: