mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Fix test: correctly set alias
This commit is contained in:
parent
773a28cf14
commit
6df13a160f
@ -81,13 +81,14 @@ func TestRedactingRoomNameIsReflectedInNextSync(t *testing.T) {
|
||||
alice := registerNamedUser(t, "alice")
|
||||
|
||||
t.Log("Alice creates a room and sets a room name.")
|
||||
room := alice.CreateRoom(t, map[string]any{})
|
||||
const naughty = "naughty room for naughty people"
|
||||
const aliasLocalPart = "nice-alias"
|
||||
nameID := alice.SetState(t, room, "m.room.name", "", map[string]any{
|
||||
"name": naughty,
|
||||
aliasLocalPart := t.Name()
|
||||
room := alice.CreateRoom(t, map[string]any{
|
||||
"room_alias_name": aliasLocalPart,
|
||||
})
|
||||
const naughty = "naughty room for naughty people"
|
||||
nameID := alice.SetState(t, room, "m.room.name", "", map[string]any{
|
||||
"name": naughty,
|
||||
})
|
||||
|
||||
t.Log("Alice sliding syncs, subscribing to that room explicitly.")
|
||||
res := alice.SlidingSync(t, sync3.Request{
|
||||
|
Loading…
x
Reference in New Issue
Block a user