aboutsummaryrefslogtreecommitdiff
path: root/federationapi/federationapi_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'federationapi/federationapi_test.go')
-rw-r--r--federationapi/federationapi_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/federationapi/federationapi_test.go b/federationapi/federationapi_test.go
index a8af0000..bef17559 100644
--- a/federationapi/federationapi_test.go
+++ b/federationapi/federationapi_test.go
@@ -321,7 +321,7 @@ func TestRoomsV3URLEscapeDoNot404(t *testing.T) {
)
for _, tc := range testCases {
- ev, err := gomatrixserverlib.NewEventFromTrustedJSON([]byte(tc.eventJSON), false, tc.roomVer)
+ ev, err := tc.roomVer.NewEventFromTrustedJSON([]byte(tc.eventJSON), false)
if err != nil {
t.Errorf("failed to parse event: %s", err)
}