Skip to content

Commit

Permalink
Test message ignoring for new conns
Browse files Browse the repository at this point in the history
Not going to test room subs separately to lists; afaics they both use LazyLoadTimelines
  • Loading branch information
David Robertson committed Aug 3, 2023
1 parent 34881e3 commit c3b7ace
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests-integration/ignored_users_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c3b7ace

Please sign in to comment.