Skip to content

Commit 11bea9a

Browse files
committed
Use stable MSC3030 endpoints
Synapse changes: matrix-org/synapse#14471
1 parent 0ca3730 commit 11bea9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/msc3030_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func TestJumpToDateEndpoint(t *testing.T) {
118118
// Make the `/timestamp_to_event` request from Bob's perspective (non room member)
119119
timestamp := makeTimestampFromTime(timeBeforeRoomCreation)
120120
timestampString := strconv.FormatInt(timestamp, 10)
121-
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{
121+
timestampToEventRes := nonMemberUser.DoFunc(t, "GET", []string{"_matrix", "client", "v1", "rooms", roomID, "timestamp_to_event"}, client.WithContentType("application/json"), client.WithQueries(url.Values{
122122
"ts": []string{timestampString},
123123
"dir": []string{"f"},
124124
}))
@@ -146,7 +146,7 @@ func TestJumpToDateEndpoint(t *testing.T) {
146146
// Make the `/timestamp_to_event` request from Bob's perspective (non room member)
147147
timestamp := makeTimestampFromTime(timeBeforeRoomCreation)
148148
timestampString := strconv.FormatInt(timestamp, 10)
149-
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{
149+
timestampToEventRes := nonMemberUser.DoFunc(t, "GET", []string{"_matrix", "client", "v1", "rooms", roomID, "timestamp_to_event"}, client.WithContentType("application/json"), client.WithQueries(url.Values{
150150
"ts": []string{timestampString},
151151
"dir": []string{"f"},
152152
}))
@@ -300,7 +300,7 @@ func mustCheckEventisReturnedForTime(t *testing.T, c *client.CSAPI, roomID strin
300300

301301
givenTimestamp := makeTimestampFromTime(givenTime)
302302
timestampString := strconv.FormatInt(givenTimestamp, 10)
303-
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{
303+
timestampToEventRes := c.DoFunc(t, "GET", []string{"_matrix", "client", "v1", "rooms", roomID, "timestamp_to_event"}, client.WithContentType("application/json"), client.WithQueries(url.Values{
304304
"ts": []string{timestampString},
305305
"dir": []string{direction},
306306
}))

0 commit comments

Comments
 (0)