Skip to content

Commit 3a0b61e

Browse files
committed
recent-dm-conversations test [nfc]: Add a missing check of listenersNotified
1 parent d59ec76 commit 3a0b61e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/model/recent_dm_conversations_test.dart

+4
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,17 @@ void main() {
129129
});
130130

131131
test('existing conversation, not newest in conversation', () {
132+
// bool listenersNotified = false;
132133
final message = eg.dmMessage(id: 99, from: eg.selfUser,
133134
to: [eg.user(userId: 1), eg.user(userId: 2)]);
134135
final expected = setupView();
135136
check(setupView()
137+
// ..addListener(() { listenersNotified = true; })
136138
..handleMessageEvent(MessageEvent(id: 1, message: message))
137139
) ..map.deepEquals(expected.map)
138140
..sorted.deepEquals(expected.sorted);
141+
// (listeners are notified unnecessarily, but that's OK)
142+
// check(listenersNotified).isTrue();
139143
});
140144
});
141145
});

0 commit comments

Comments
 (0)