From 63f84da3e45d4e1cace427c6d30f19ba7e621618 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 29 Apr 2022 15:05:13 +0200 Subject: [chore] Inboxes for iri test (#508) * tidy up some federation tests * add missing license to following.go * give zork some followers, as a treat * test InboxesForIRI * Go fmt * update timeline tests --- internal/timeline/index_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'internal/timeline/index_test.go') diff --git a/internal/timeline/index_test.go b/internal/timeline/index_test.go index 3f4822dcb..acefe2b4c 100644 --- a/internal/timeline/index_test.go +++ b/internal/timeline/index_test.go @@ -74,13 +74,12 @@ func (suite *IndexTestSuite) TestIndexBeforeLowID() { err := suite.timeline.IndexBefore(context.Background(), "00000000000000000000000000", 10) suite.NoError(err) - // the oldest indexed post should be the lowest one we have in our testrig postID, err := suite.timeline.OldestIndexedItemID(context.Background()) suite.NoError(err) - suite.Equal("01F8MHAYFKS4KMXF8K5Y1C0KRN", postID) + suite.Equal("01F8MHBBN8120SYH7D5S050MGK", postID) indexLength := suite.timeline.ItemIndexLength(context.Background()) - suite.Equal(10, indexLength) + suite.Equal(9, indexLength) } func (suite *IndexTestSuite) TestIndexBeforeHighID() { @@ -108,9 +107,9 @@ func (suite *IndexTestSuite) TestIndexBehindHighID() { suite.NoError(err) suite.Equal("01FN3VJGFH10KR7S2PB0GFJZYG", postID) - // indexLength should be 10 because that's all this user has hometimelineable + // indexLength should be 9 because that's all this user has hometimelineable indexLength := suite.timeline.ItemIndexLength(context.Background()) - suite.Equal(10, indexLength) + suite.Equal(9, indexLength) } func (suite *IndexTestSuite) TestIndexBehindLowID() { -- cgit v1.2.3