diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2023-05-24 12:14:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-24 12:14:42 +0200 |
commit | 11b557097c6745309c09b58f681080d3fcc4f9f5 (patch) | |
tree | d721e47a4cd169539d759131a22f5d6e4e16b584 /roomserver/internal/query/query_test.go | |
parent | 5d6221d1917c3494fed57e055e46928aaa4b5bda (diff) |
Drop `reference_sha` column (#3083)
Companion PR to https://github.com/matrix-org/gomatrixserverlib/pull/383
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, |