diff options
author | devonh <devon.dmytro@gmail.com> | 2023-05-31 15:27:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-31 15:27:08 +0000 |
commit | cbdc601f1b6d1c2a648b69ff44b3a49916f4d31a (patch) | |
tree | 6d14c55508579211e3833cab60cfdfea3fab04a6 /cmd | |
parent | 61341aca500ec4d87e5b6d4c3f965c3836d6e6d6 (diff) |
Move CreateRoom logic to Roomserver (#3093)
Move create room logic over to roomserver.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/dendrite-upgrade-tests/tests.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/dendrite-upgrade-tests/tests.go b/cmd/dendrite-upgrade-tests/tests.go index 03438bd4..692ab34e 100644 --- a/cmd/dendrite-upgrade-tests/tests.go +++ b/cmd/dendrite-upgrade-tests/tests.go @@ -9,6 +9,7 @@ import ( "github.com/Masterminds/semver/v3" "github.com/matrix-org/gomatrix" "github.com/matrix-org/gomatrixserverlib" + "github.com/matrix-org/gomatrixserverlib/spec" ) const userPassword = "this_is_a_long_password" @@ -56,7 +57,7 @@ func runTests(baseURL string, v *semver.Version) error { // create DM room, join it and exchange messages createRoomResp, err := users[0].client.CreateRoom(&gomatrix.ReqCreateRoom{ - Preset: "trusted_private_chat", + Preset: spec.PresetTrustedPrivateChat, Invite: []string{users[1].userID}, IsDirect: true, }) @@ -98,7 +99,7 @@ func runTests(baseURL string, v *semver.Version) error { publicRoomID := "" createRoomResp, err = users[0].client.CreateRoom(&gomatrix.ReqCreateRoom{ RoomAliasName: "global", - Preset: "public_chat", + Preset: spec.PresetPublicChat, }) if err != nil { // this is okay and expected if the room already exists and the aliases clash // try to join it |