mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
cap -> len
Co-authored-by: kegsay <kegan@matrix.org>
This commit is contained in:
parent
e85931259b
commit
fe6306937c
@ -299,7 +299,7 @@ func TestTypingRespectsExtensionScopeWithOmittedFields(t *testing.T) {
|
||||
|
||||
t.Log("Alice creates four rooms. Bob joins each one.")
|
||||
rooms := make([]string, 4)
|
||||
for i := 0; i < cap(rooms); i++ {
|
||||
for i := 0; i < len(rooms); i++ {
|
||||
rooms[i] = alice.CreateRoom(t, map[string]interface{}{"preset": "public_chat", "name": fmt.Sprintf("room %d", i)})
|
||||
bob.JoinRoom(t, rooms[i], nil)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user