Skip to content

Commit 2cfa9ee

Browse files
committed
Adjust TestAvatarUrlUpdate to make MXC's match the matrix spec
1 parent 2c5179e commit 2cfa9ee

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/csapi/room_profile_test.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,18 @@ import (
1111
)
1212

1313
func TestAvatarUrlUpdate(t *testing.T) {
14-
testProfileFieldUpdate(t, "avatar_url")
14+
testProfileFieldUpdate(t, "avatar_url", "mxc://example.com/LemurLover")
1515
}
1616

1717
func TestDisplayNameUpdate(t *testing.T) {
18-
testProfileFieldUpdate(t, "displayname")
18+
testProfileFieldUpdate(t, "displayname", "LemurLover")
1919
}
2020

2121
// sytest: $datum updates affect room member events
22-
func testProfileFieldUpdate(t *testing.T, field string) {
22+
func testProfileFieldUpdate(t *testing.T, field string, bogusData string) {
2323
deployment := complement.Deploy(t, 1)
2424
defer deployment.Destroy(t)
2525

26-
const bogusData = "LemurLover"
27-
2826
alice := deployment.Register(t, "hs1", helpers.RegistrationOpts{})
2927

3028
roomID := alice.MustCreateRoom(t, map[string]interface{}{

0 commit comments

Comments
 (0)