From 11bea9aaa0ac670b3d3437adc713e67f92605f4f Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Wed, 16 Nov 2022 14:22:40 -0600 Subject: [PATCH] Use stable MSC3030 endpoints Synapse changes: https://github.com/matrix-org/synapse/pull/14471 --- tests/msc3030_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/msc3030_test.go b/tests/msc3030_test.go index 8350b192..39b420bd 100644 --- a/tests/msc3030_test.go +++ b/tests/msc3030_test.go @@ -118,7 +118,7 @@ func TestJumpToDateEndpoint(t *testing.T) { // Make the `/timestamp_to_event` request from Bob's perspective (non room member) timestamp := makeTimestampFromTime(timeBeforeRoomCreation) timestampString := strconv.FormatInt(timestamp, 10) - timestampToEventRes := nonMemberUser.DoFunc(t, "GET", []string{"_matrix", "client", "unstable", "org.matrix.msc3030", "rooms", roomID, "timestamp_to_event"}, client.WithContentType("application/json"), client.WithQueries(url.Values{ + timestampToEventRes := nonMemberUser.DoFunc(t, "GET", []string{"_matrix", "client", "v1", "rooms", roomID, "timestamp_to_event"}, client.WithContentType("application/json"), client.WithQueries(url.Values{ "ts": []string{timestampString}, "dir": []string{"f"}, })) @@ -146,7 +146,7 @@ func TestJumpToDateEndpoint(t *testing.T) { // Make the `/timestamp_to_event` request from Bob's perspective (non room member) timestamp := makeTimestampFromTime(timeBeforeRoomCreation) timestampString := strconv.FormatInt(timestamp, 10) - timestampToEventRes := nonMemberUser.DoFunc(t, "GET", []string{"_matrix", "client", "unstable", "org.matrix.msc3030", "rooms", roomID, "timestamp_to_event"}, client.WithContentType("application/json"), client.WithQueries(url.Values{ + timestampToEventRes := nonMemberUser.DoFunc(t, "GET", []string{"_matrix", "client", "v1", "rooms", roomID, "timestamp_to_event"}, client.WithContentType("application/json"), client.WithQueries(url.Values{ "ts": []string{timestampString}, "dir": []string{"f"}, })) @@ -300,7 +300,7 @@ func mustCheckEventisReturnedForTime(t *testing.T, c *client.CSAPI, roomID strin givenTimestamp := makeTimestampFromTime(givenTime) timestampString := strconv.FormatInt(givenTimestamp, 10) - timestampToEventRes := c.DoFunc(t, "GET", []string{"_matrix", "client", "unstable", "org.matrix.msc3030", "rooms", roomID, "timestamp_to_event"}, client.WithContentType("application/json"), client.WithQueries(url.Values{ + timestampToEventRes := c.DoFunc(t, "GET", []string{"_matrix", "client", "v1", "rooms", roomID, "timestamp_to_event"}, client.WithContentType("application/json"), client.WithQueries(url.Values{ "ts": []string{timestampString}, "dir": []string{direction}, }))