Commit 3d09f94
Add more tests for receiving events while resyncing for a partial join (#419)
And add some helper functions along the way:
* Factor out a `CreateMessageEvent()` helper.
* Add `testReceiveEventDuringPartialStateJoin()`, which sends an event
over federation, checks that a client can see it and checks the state
at the event.
* Add `handleGetMissingEventsRequests()` to respond to
`/get_missing_events` requests.
* Add a `Context` parameter to `SendFederationRequest()`, to allow
custom timeouts to be specified.
Co-authored-by: Richard van der Hoff <[email protected]>1 parent 6d5c75f commit 3d09f94
File tree
3 files changed
+285
-69
lines changed- internal/federation
- tests
3 files changed
+285
-69
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
0 commit comments