diff --git a/tests-integration/room_subscriptions_test.go b/tests-integration/room_subscriptions_test.go index 0297bc8..ba89ad9 100644 --- a/tests-integration/room_subscriptions_test.go +++ b/tests-integration/room_subscriptions_test.go @@ -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), diff --git a/tests-integration/space_test.go b/tests-integration/space_test.go index 4df807f..3856505 100644 --- a/tests-integration/space_test.go +++ b/tests-integration/space_test.go @@ -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{ @@ -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{