aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2023-05-24 12:14:42 +0200
committerGitHub <noreply@github.com>2023-05-24 12:14:42 +0200
commit11b557097c6745309c09b58f681080d3fcc4f9f5 (patch)
treed721e47a4cd169539d759131a22f5d6e4e16b584 /test
parent5d6221d1917c3494fed57e055e46928aaa4b5bda (diff)
Drop `reference_sha` column (#3083)
Companion PR to https://github.com/matrix-org/gomatrixserverlib/pull/383
Diffstat (limited to 'test')
-rw-r--r--test/room.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/room.go b/test/room.go
index 1c0f01e4..852e3153 100644
--- a/test/room.go
+++ b/test/room.go
@@ -75,7 +75,7 @@ func NewRoom(t *testing.T, creator *User, modifiers ...roomModifier) *Room {
return r
}
-func (r *Room) MustGetAuthEventRefsForEvent(t *testing.T, needed gomatrixserverlib.StateNeeded) []gomatrixserverlib.EventReference {
+func (r *Room) MustGetAuthEventRefsForEvent(t *testing.T, needed gomatrixserverlib.StateNeeded) []string {
t.Helper()
a, err := needed.AuthEventReferences(&r.authEvents)
if err != nil {
@@ -176,7 +176,7 @@ func (r *Room) CreateEvent(t *testing.T, creator *User, eventType string, conten
t.Fatalf("CreateEvent[%s]: failed to SetContent: %s", eventType, err)
}
if depth > 1 {
- builder.PrevEvents = []gomatrixserverlib.EventReference{r.events[len(r.events)-1].EventReference()}
+ builder.PrevEvents = []string{r.events[len(r.events)-1].EventID()}
}
err = builder.AddAuthEvents(&r.authEvents)