aboutsummaryrefslogtreecommitdiff
path: root/roomserver/storage/tables/rooms_table_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'roomserver/storage/tables/rooms_table_test.go')
-rw-r--r--roomserver/storage/tables/rooms_table_test.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/roomserver/storage/tables/rooms_table_test.go b/roomserver/storage/tables/rooms_table_test.go
index eddd012c..e97e3e33 100644
--- a/roomserver/storage/tables/rooms_table_test.go
+++ b/roomserver/storage/tables/rooms_table_test.go
@@ -74,11 +74,6 @@ func TestRoomsTable(t *testing.T) {
assert.NoError(t, err)
assert.Nil(t, roomInfo)
- // There are no rooms with latestEventNIDs yet
- roomIDs, err := tab.SelectRoomIDsWithEvents(ctx, nil)
- assert.NoError(t, err)
- assert.Equal(t, 0, len(roomIDs))
-
roomVersions, err := tab.SelectRoomVersionsForRoomNIDs(ctx, nil, []types.RoomNID{wantRoomNID, 1337})
assert.NoError(t, err)
assert.Equal(t, roomVersions[wantRoomNID], room.Version)
@@ -86,7 +81,7 @@ func TestRoomsTable(t *testing.T) {
_, ok := roomVersions[1337]
assert.False(t, ok)
- roomIDs, err = tab.BulkSelectRoomIDs(ctx, nil, []types.RoomNID{wantRoomNID, 1337})
+ roomIDs, err := tab.BulkSelectRoomIDs(ctx, nil, []types.RoomNID{wantRoomNID, 1337})
assert.NoError(t, err)
assert.Equal(t, []string{room.ID}, roomIDs)