Fix another test

This commit is contained in:
David Robertson 2023-04-05 18:43:31 +01:00
parent 03823bd3ff
commit 555ba0e0e5
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD

View File

@ -1,6 +1,7 @@
package handler
import (
"context"
"reflect"
"sort"
"strings"
@ -258,7 +259,7 @@ func TestRoomsBuilder(t *testing.T) {
rb := NewRoomsBuilder()
for _, bs := range tc.subsToAdd {
id := rb.AddSubscription(bs.RoomSubscription)
rb.AddRoomsToSubscription(ctx, id, bs.RoomIDs)
rb.AddRoomsToSubscription(context.Background(), id, bs.RoomIDs)
}
got := rb.BuildSubscriptions()
tc.want = sortBuiltSubs(tc.want)