Skip to content

Commit

Permalink
Fix widget tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpengi committed Dec 4, 2023
1 parent 6adbad6 commit 021305c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/widgets/message_list_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ void main() {

// ... and we should fetch more messages as we go.
connection.prepare(json: olderResult(anchor: 950, foundOldest: false,
messages: List.generate(100, (i) => eg.streamMessage(id: 850 + i, sender: eg.selfUser))).toJson());
messages: List.generate(200, (i) => eg.streamMessage(id: 750 + i, sender: eg.selfUser))).toJson());
await tester.pump(const Duration(seconds: 3)); // Fast-forward to end of fling.
await tester.pump(Duration.zero); // Allow a frame for the response to arrive.

// Now we have more messages.
check(itemCount(tester)).equals(303);
check(itemCount(tester)).equals(403);
});

testWidgets('observe double-fetch glitch', (tester) async {
Expand Down

0 comments on commit 021305c

Please sign in to comment.