From a0af4de308564827b4cb297e5e137bbc48a8ccc6 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Tue, 16 May 2023 12:35:35 +0100 Subject: [PATCH] Fix tests to pass `t` to addAccount --- tests-integration/room_subscriptions_test.go | 2 +- tests-integration/space_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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{