Skip to content

Commit b16acd1

Browse files
committed
Change mentions test to use personId instead of personEmail
Some tests are intermittently failing and reporting that the test `personEmail` provided is not valid (though it is and manual tests verify call succeeds with the test e-mail). Try using the `personId` instead to see if the same inconsistency occurs.
1 parent f7d7ff0 commit b16acd1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/api/test_messages.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,9 @@ def group_room_markdown_message(group_room, send_group_room_message, me,
112112
# Uses / depends on group_room_text_message to ensure this message is
113113
# created after group_room_text_message, so that we can be sure that a
114114
# message exists 'before' this one - used to test 'before' list filters.
115-
markdown = create_string("<@personEmail:{email}|{name}>, This is "
115+
markdown = create_string("<@personId:{id}|{name}>, This is "
116116
"**markdown** with a mention."
117-
"".format(email=me.emails[0],
118-
name=me.displayName))
117+
"".format(id=me.id, name=me.displayName))
119118
return send_group_room_message(group_room.id, markdown=markdown)
120119

121120

0 commit comments

Comments
 (0)