Skip to content

Commit 3444a68

Browse files
committed
autocomplete test: Make distinct topic explicitly distinct
This test was relying on its `topic` variable (whose value is "topic") being different from the topic chosen by default by eg.streamMessage. It does happen to be different, but it could just as well not have been. Because the difference matters -- the test would fail if they happened to be the same -- the test case itself should be explicit about that.
1 parent 363dafa commit 3444a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/model/autocomplete_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ void main() {
600600

601601
await prepare(users: users, messages: [
602602
eg.streamMessage(id: 50, sender: users[1-1], stream: stream, topic: topic),
603-
eg.streamMessage(id: 60, sender: users[5-1], stream: stream),
603+
eg.streamMessage(id: 60, sender: users[5-1], stream: stream, topic: 'other $topic'),
604604
], dmConversations: [
605605
RecentDmConversation(userIds: [4], maxMessageId: 300),
606606
RecentDmConversation(userIds: [1], maxMessageId: 200),

0 commit comments

Comments
 (0)