Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_user_groups: Add `durable=True` to the independent transaction.

Prakhar Pratyushfdcd518e26d8
diff --git a/zerver/transaction_tests/test_user_groups.py b/zerver/transaction_tests/test_user_groups.py
index 1cdeff32ec1..a6167b0c854 100644
--- a/zerver/transaction_tests/test_user_groups.py
+++ b/zerver/transaction_tests/test_user_groups.py
@@ -70,7 +70,7 @@ class UserGroupRaceConditionTestCase(ZulipTransactionTestCase):
@override
def tearDown(self) -> None:
# Clean up the user groups created to minimize leakage
- with transaction.atomic():
+ with transaction.atomic(durable=True):
for group in self.created_user_groups:
# can_manage_group can be deleted as long as it's the
# default group_creator. If we start using non-default