diff --git a/tests/api/fillslot/test_recurring_events.py b/tests/api/fillslot/test_recurring_events.py index ab52b4ed..e804db7a 100644 --- a/tests/api/fillslot/test_recurring_events.py +++ b/tests/api/fillslot/test_recurring_events.py @@ -1294,6 +1294,9 @@ def test_recurring_events_api_fillslots_multiple_agendas_queries(app, user): start_datetime=start, places=2, recurrence_end_date=end, recurrence_days=[1, 2], agenda=agenda ) event.create_all_recurrences() + with connection.cursor() as cursor: + # force an analyze pass after we load data so PG has usable statistics + cursor.execute("ANALYZE;") agenda_slugs = ','.join(str(i) for i in range(20)) resp = app.get('/api/agendas/recurring-events/?action=update&agendas=%s' % agenda_slugs)