Apply suggestions from code review

Co-authored-by: kegsay <kegan@matrix.org>
This commit is contained in:
Till 2023-09-13 14:53:11 +02:00 committed by GitHub
parent 64fc8d7fe3
commit 0a07eb1dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -455,7 +455,7 @@ func TestLeavingRoomReturnsOneEvent(t *testing.T) {
res = bob.SlidingSync(t, sync3.Request{}, WithPos(res.Pos))
// this should not happen, as we already send down the leave event
// If alice is synching, we run into this failure mode
// If alice is syncing, we run into this failure mode
if room, ok := res.Rooms[inviteRoomID]; ok {
for _, ev := range room.Timeline {
t.Logf("[multiple poller=%v] Event: %s", aliceSyncing, ev)
@ -521,7 +521,7 @@ func TestRejectingInviteReturnsOneEvent(t *testing.T) {
res = bob.SlidingSync(t, sync3.Request{}, WithPos(res.Pos))
// this should not happen, as we already send down the leave event
// If alice is synching, we run into this failure mode
// If alice is syncing, we run into this failure mode
if room, ok := res.Rooms[inviteRoomID]; ok {
for _, ev := range room.Timeline {
t.Logf("[multiple poller=%v] Event: %s", aliceSyncing, ev)