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_stripe: Improve test stripe.

The Dance301e6d2e9a26
diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py
index 35b1371aedf..5f1d6012f66 100644
--- a/corporate/tests/test_stripe.py
+++ b/corporate/tests/test_stripe.py
@@ -7173,7 +7173,7 @@ class TestSupportBillingHelpers(StripeTestCase):
hamlet_recipient = self.example_user("hamlet").recipient
message_to_hamlet = Message.objects.filter(
realm_id=realm.id, sender=sender.id, recipient=hamlet_recipient
- ).first()
+ ).last()
assert message_to_hamlet is not None
self.assertEqual(message_to_hamlet.content, expected_message)
self.assertEqual(message_to_hamlet.recipient.type, Recipient.PERSONAL)