Skip to content

Commit

Permalink
msglist test [nfc]: Add distinct ids to messages in 'show names on DM…
Browse files Browse the repository at this point in the history
…s' setup

This will prevent a future test failure when other parts of
the app begin assuming that messages have unique ids.
  • Loading branch information
sirpengi committed Oct 26, 2023
1 parent 18988d1 commit 9e173cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/widgets/message_list_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ void main() {

testWidgets('show names on DMs', (tester) async {
await setupMessageListPage(tester, messages: [
eg.dmMessage(from: eg.selfUser, to: []),
eg.dmMessage(from: eg.otherUser, to: [eg.selfUser]),
eg.dmMessage(from: eg.thirdUser, to: [eg.selfUser, eg.otherUser]),
eg.dmMessage(id: 1, from: eg.selfUser, to: []),
eg.dmMessage(id: 2, from: eg.otherUser, to: [eg.selfUser]),
eg.dmMessage(id: 3, from: eg.thirdUser, to: [eg.selfUser, eg.otherUser]),
]);
store.addUser(eg.otherUser);
store.addUser(eg.thirdUser);
Expand Down

0 comments on commit 9e173cc

Please sign in to comment.