Test message ignoring for new conns

Not going to test room subs separately to lists; afaics they both use LazyLoadTimelines
This commit is contained in:
David Robertson 2023-08-03 18:56:38 +01:00
parent 34881e328f
commit c3b7ace31f
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD

View File

@ -161,8 +161,10 @@ func TestIgnoredUsersDuringLiveUpdate(t *testing.T) {
}, },
}, },
}) })
t.Log("Alice sees her message.") t.Log("Alice sees her join, her messages and nigel's state in the timeline.")
m.MatchResponse(t, aliceRes, m.MatchRoomSubscription(roomID, m.MatchRoomTimelineMostRecent(1, []json.RawMessage{aliceMsg2}))) 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.") t.Log("Bob's poller sees Nigel and Alice send a message.")
nigelMsg2 := testutils.NewMessageEvent(t, nigel, "naughty nigel 3") nigelMsg2 := testutils.NewMessageEvent(t, nigel, "naughty nigel 3")