mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
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:
parent
34881e328f
commit
c3b7ace31f
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user