diff options
Diffstat (limited to 'roomserver/internal/query/query_test.go')
-rw-r--r-- | roomserver/internal/query/query_test.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/roomserver/internal/query/query_test.go b/roomserver/internal/query/query_test.go index b6715cb0..619d9303 100644 --- a/roomserver/internal/query/query_test.go +++ b/roomserver/internal/query/query_test.go @@ -43,13 +43,10 @@ func createEventDB() *getEventDB { // Adds a fake event to the storage with given auth events. func (db *getEventDB) addFakeEvent(eventID string, authIDs []string) error { - authEvents := []gomatrixserverlib.EventReference{} + authEvents := make([]any, 0, len(authIDs)) for _, authID := range authIDs { - authEvents = append(authEvents, gomatrixserverlib.EventReference{ - EventID: authID, - }) + authEvents = append(authEvents, []any{authID, struct{}{}}) } - builder := map[string]interface{}{ "event_id": eventID, "auth_events": authEvents, |