summaryrefslogtreecommitdiff
path: root/tests/migration_test_data_persistence/tests.py
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2024-11-20 09:07:11 -0500
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-11-27 12:51:41 +0100
commitd4b2e06a67c2e1458305c3eac6c4b2b3e917daf9 (patch)
tree260e817f519323472184be4c02b9637f4c583ab3 /tests/migration_test_data_persistence/tests.py
parentd8eb13f0f88d4462e70af74f4e9c930126e14306 (diff)
Fixed #35921 -- Fixed failure when running tests in parallel on postgres.
Follow-up to a060a22ee2dde7aa29a5a29120087c4864887325.
Diffstat (limited to 'tests/migration_test_data_persistence/tests.py')
-rw-r--r--tests/migration_test_data_persistence/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/migration_test_data_persistence/tests.py b/tests/migration_test_data_persistence/tests.py
index a04259bba1..ca044f310f 100644
--- a/tests/migration_test_data_persistence/tests.py
+++ b/tests/migration_test_data_persistence/tests.py
@@ -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()