1
0
mirror of https://github.com/django/django.git synced 2025-03-31 19:46:42 +00:00

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

Follow-up to a060a22ee2dde7aa29a5a29120087c4864887325.
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()