From c3b7ace31ff0d18b7aba93c71dae7eb20402c248 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Thu, 3 Aug 2023 18:56:38 +0100 Subject: [PATCH] Test message ignoring for new conns Not going to test room subs separately to lists; afaics they both use LazyLoadTimelines --- tests-integration/ignored_users_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests-integration/ignored_users_test.go b/tests-integration/ignored_users_test.go index 36413d0..a95b778 100644 --- a/tests-integration/ignored_users_test.go +++ b/tests-integration/ignored_users_test.go @@ -161,8 +161,10 @@ func TestIgnoredUsersDuringLiveUpdate(t *testing.T) { }, }, }) - t.Log("Alice sees her message.") - m.MatchResponse(t, aliceRes, m.MatchRoomSubscription(roomID, m.MatchRoomTimelineMostRecent(1, []json.RawMessage{aliceMsg2}))) + t.Log("Alice sees her join, her messages and nigel's state in the timeline.") + m.MatchResponse(t, aliceRes, m.MatchRoomSubscription(roomID, m.MatchRoomTimeline([]json.RawMessage{ + aliceJoin, aliceMsg, nigelState, aliceMsg2, + }))) t.Log("Bob's poller sees Nigel and Alice send a message.") nigelMsg2 := testutils.NewMessageEvent(t, nigel, "naughty nigel 3")