From edb88208c06ff040ad803217f04a3f180bb66966 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Fri, 4 Aug 2023 16:09:26 -0700 Subject: [PATCH] msglist test: Consistently check whether listeners notified --- test/model/message_list_test.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/model/message_list_test.dart b/test/model/message_list_test.dart index 59ac83a9d6..6893938a23 100644 --- a/test/model/message_list_test.dart +++ b/test/model/message_list_test.dart @@ -140,9 +140,12 @@ void main() async { ); final messageList = await messageListViewWithMessages([originalMessage], stream, narrow); + bool listenersNotified = false; + messageList.addListener(() { listenersNotified = true; }); final message = messageList.messages.single; messageList.maybeUpdateMessage(updateEvent); + check(listenersNotified).isTrue(); check(messageList.messages.single) ..identicalTo(message) // Content is updated...