Skip to content

Commit 7331ebc

Browse files
author
David Robertson
committed
Ensure we detect matrix-org/synapse#13684
1 parent 0300eb7 commit 7331ebc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/federation_room_join_partial_state_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,14 @@ func TestPartialStateJoin(t *testing.T) {
214214
}
215215
psjResult.Server.MustSendTransaction(t, deployment, "hs1", []json.RawMessage{}, []gomatrixserverlib.EDU{edu})
216216

217+
// Alice should still be able to see incoming PDUs in the room during
218+
// the resync; the earlier EDU shouldn't interfere with this.
219+
// (See https://github.com/matrix-org/synapse/issues/13684)
220+
event := psjResult.CreateMessageEvent(t, "charlie", nil)
221+
serverRoom.AddEvent(event)
222+
server.MustSendTransaction(t, deployment, "hs1", []json.RawMessage{event.JSON()}, nil)
223+
awaitEventViaSync(t, alice, serverRoom.RoomID, event.EventID(), "")
224+
217225
psjResult.FinishStateRequest()
218226
alice.MustSyncUntil(t,
219227
client.SyncReq{},

0 commit comments

Comments
 (0)