Skip to content

Commit

Permalink
Fix tests to pass t to addAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed May 16, 2023
1 parent 14a3370 commit a0af4de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests-integration/room_subscriptions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func TestRoomSubscriptionMisorderedTimeline(t *testing.T) {
roomID: "!room:localhost",
events: append(roomState, abcInitialEvents...),
}
v2.addAccount(alice, aliceToken)
v2.addAccount(t, alice, aliceToken)
v2.queueResponse(alice, sync2.SyncResponse{
Rooms: sync2.SyncRoomsResponse{
Join: v2JoinTimeline(room),
Expand Down
4 changes: 2 additions & 2 deletions tests-integration/space_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestBecomingASpaceDoesntCrash(t *testing.T) {
defer v2.close()
defer v3.close()
roomID := "!foo:bar"
v2.addAccount(alice, aliceToken)
v2.addAccount(t, alice, aliceToken)
v2.queueResponse(alice, sync2.SyncResponse{
Rooms: sync2.SyncRoomsResponse{
Join: v2JoinTimeline(roomEvents{
Expand All @@ -38,7 +38,7 @@ func TestBecomingASpaceDoesntCrash(t *testing.T) {
"via": []string{"example.com"},
})
// TODO: we inject bob here because alice's sync stream seems to discard this response post-restart for unknown reasons
v2.addAccount(bob, bobToken)
v2.addAccount(t, bob, bobToken)
v2.queueResponse(bob, sync2.SyncResponse{
Rooms: sync2.SyncRoomsResponse{
Join: v2JoinTimeline(roomEvents{
Expand Down

0 comments on commit a0af4de

Please sign in to comment.