mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 05:43:09 -06:00
Sigh.. linting
This commit is contained in:
parent
6a680e7130
commit
2f3fbd0c14
|
|
@ -138,7 +138,7 @@ func leaveResponseWithRooms(syncResponse *types.Response, userID string, roomIDs
|
|||
|
||||
// tests that joining a room which results in sharing a new user includes that user in `changed`
|
||||
func TestKeyChangeCatchupOnJoinShareNewUser(t *testing.T) {
|
||||
newShareUser := "@bob:localhost"
|
||||
newShareUser := "@bill:localhost"
|
||||
newlyJoinedRoom := "!TestKeyChangeCatchupOnJoinShareNewUser:bar"
|
||||
consumer := NewOutputKeyChangeEventConsumer(gomatrixserverlib.ServerName("localhost"), "some_topic", nil, &mockCurrentStateAPI{
|
||||
roomIDToJoinedMembers: map[string][]string{
|
||||
|
|
@ -161,7 +161,7 @@ func TestKeyChangeCatchupOnJoinShareNewUser(t *testing.T) {
|
|||
|
||||
// tests that leaving a room which results in sharing no rooms with a user includes that user in `left`
|
||||
func TestKeyChangeCatchupOnLeaveShareLeftUser(t *testing.T) {
|
||||
removeUser := "@bob:localhost"
|
||||
removeUser := "@bill:localhost"
|
||||
newlyLeftRoom := "!TestKeyChangeCatchupOnLeaveShareLeftUser:bar"
|
||||
consumer := NewOutputKeyChangeEventConsumer(gomatrixserverlib.ServerName("localhost"), "some_topic", nil, &mockCurrentStateAPI{
|
||||
roomIDToJoinedMembers: map[string][]string{
|
||||
|
|
@ -228,7 +228,7 @@ func TestKeyChangeCatchupOnLeaveShareNoUsers(t *testing.T) {
|
|||
|
||||
// tests that not joining any rooms (but having messages in the response) do not result in changes.
|
||||
func TestKeyChangeCatchupNoNewJoinsButMessages(t *testing.T) {
|
||||
existingUser := "@bob:localhost"
|
||||
existingUser := "@bob1:localhost"
|
||||
roomID := "!TestKeyChangeCatchupNoNewJoinsButMessages:bar"
|
||||
consumer := NewOutputKeyChangeEventConsumer(gomatrixserverlib.ServerName("localhost"), "some_topic", nil, &mockCurrentStateAPI{
|
||||
roomIDToJoinedMembers: map[string][]string{
|
||||
|
|
@ -288,7 +288,7 @@ func TestKeyChangeCatchupNoNewJoinsButMessages(t *testing.T) {
|
|||
// tests that joining/leaving multiple rooms can result in both `changed` and `left` and they are not duplicated.
|
||||
func TestKeyChangeCatchupChangeAndLeft(t *testing.T) {
|
||||
newShareUser := "@berta:localhost"
|
||||
newShareUser2 := "@bob:localhost"
|
||||
newShareUser2 := "@bobby:localhost"
|
||||
newlyLeftUser := "@charlie:localhost"
|
||||
newlyLeftUser2 := "@debra:localhost"
|
||||
newlyJoinedRoom := "!join:bar"
|
||||
|
|
@ -327,7 +327,7 @@ func TestKeyChangeCatchupChangeAndLeft(t *testing.T) {
|
|||
// Ergo, we put them in `left` as it is simpler.
|
||||
func TestKeyChangeCatchupChangeAndLeftSameRoom(t *testing.T) {
|
||||
newShareUser := "@berta:localhost"
|
||||
newShareUser2 := "@bob:localhost"
|
||||
newShareUser2 := "@bobby:localhost"
|
||||
roomID := "!join:bar"
|
||||
consumer := NewOutputKeyChangeEventConsumer(gomatrixserverlib.ServerName("localhost"), "some_topic", nil, &mockCurrentStateAPI{
|
||||
roomIDToJoinedMembers: map[string][]string{
|
||||
|
|
|
|||
Loading…
Reference in a new issue