1
0
mirror of https://github.com/django/django.git synced 2024-12-22 00:55:44 +00:00

Fixed #35921 -- Fixed failure when running tests in parallel on postgres.

Follow-up to a060a22ee2.
This commit is contained in:
Jacob Walls 2024-11-20 09:07:11 -05:00 committed by Sarah Boyce
parent d8eb13f0f8
commit d4b2e06a67

View File

@ -32,7 +32,7 @@ class MigrationDataPersistenceClassSetup(TransactionTestCase):
@classmethod
def setUpClass(cls):
# Simulate another TransactionTestCase having just torn down.
call_command("flush", verbosity=0, interactive=False)
call_command("flush", verbosity=0, interactive=False, allow_cascade=True)
super().setUpClass()
cls.book = Book.objects.first()