Skip to content

Commit

Permalink
Only fail the test if the Sender is different
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Oct 3, 2023
1 parent 2fa739f commit 1d2502d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func (c *CSAPI) Unsafe_SendEventUnsyncedWithTxnID(t TestLike, roomID string, e b
if e.StateKey != nil {
paths = []string{"_matrix", "client", "v3", "rooms", roomID, "state", e.Type, *e.StateKey}
}
if e.Sender != "" {
if e.Sender != "" && e.Sender != c.UserID {
t.Fatalf("Event.Sender must not be set, as this is set by the client in use (%s)", c.UserID)
}
res := c.MustDo(t, "PUT", paths, WithJSONBody(t, e.Content))
Expand Down

0 comments on commit 1d2502d

Please sign in to comment.