From 5ef41ba3f21f4c2105f668fc35b6284749e17775 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 16 May 2022 18:48:59 +0200 Subject: [chore] Timeline test updates (#578) * add admin boost of zork to test model * update tests to make them more determinate * remove printf call --- internal/timeline/index_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/timeline/index_test.go') diff --git a/internal/timeline/index_test.go b/internal/timeline/index_test.go index b08fbf296..ae7ec40ab 100644 --- a/internal/timeline/index_test.go +++ b/internal/timeline/index_test.go @@ -76,7 +76,7 @@ func (suite *IndexTestSuite) TestIndexBeforeLowID() { postID, err := suite.timeline.OldestIndexedItemID(context.Background()) suite.NoError(err) - suite.Equal("01F8MHBQCBTDKN6X5VHGMMN4MA", postID) + suite.Equal("01F8MHC0H0A7XHTVH5F596ZKBM", postID) indexLength := suite.timeline.ItemIndexLength(context.Background()) suite.Equal(9, indexLength) @@ -105,7 +105,7 @@ func (suite *IndexTestSuite) TestIndexBehindHighID() { // the newest indexed post should be the highest one we have in our testrig postID, err := suite.timeline.NewestIndexedItemID(context.Background()) suite.NoError(err) - suite.Equal("01G20ZM733MGN8J344T4ZDDFY1", postID) + suite.Equal("01G36SF3V6Y6V5BF9P4R7PQG7G", postID) // indexLength should be 9 because that's all this user has hometimelineable indexLength := suite.timeline.ItemIndexLength(context.Background()) -- cgit v1.2.3