Skip to content

Commit

Permalink
Fix existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Jun 9, 2023
1 parent 5ce9185 commit bb0d653
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sync3/extensions/account_data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ func TestLiveAccountDataAggregation(t *testing.T) {
},
}
var res Response
var extCtx Context
var extCtx = Context{
AllSubscribedRooms: []string{roomA},
}
room1 := &caches.RoomAccountDataUpdate{
RoomUpdate: &dummyRoomUpdate{
roomID: roomA,
Expand Down Expand Up @@ -78,6 +80,9 @@ func TestLiveAccountDataAggregation(t *testing.T) {
room1.AccountData[0].Data, room1.AccountData[1].Data,
},
}
if res.AccountData == nil {
t.Fatalf("Didn't get account data: %v", res)
}
if !reflect.DeepEqual(res.AccountData.Rooms, wantRoomAccountData) {
t.Fatalf("got %+v\nwant %+v", res.AccountData.Rooms, wantRoomAccountData)
}
Expand Down

0 comments on commit bb0d653

Please sign in to comment.