summaryrefslogtreecommitdiff
path: root/internal/timeline/index_test.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-05-16 18:48:59 +0200
committerLibravatar GitHub <noreply@github.com>2022-05-16 18:48:59 +0200
commit5ef41ba3f21f4c2105f668fc35b6284749e17775 (patch)
treebd77afe69fab45d411bc6604f35737dcb941acda /internal/timeline/index_test.go
parenttestrig: override bind address from environment variable (#577) (diff)
downloadgotosocial-5ef41ba3f21f4c2105f668fc35b6284749e17775.tar.xz
[chore] Timeline test updates (#578)
* add admin boost of zork to test model * update tests to make them more determinate * remove printf call
Diffstat (limited to 'internal/timeline/index_test.go')
-rw-r--r--internal/timeline/index_test.go4
1 files changed, 2 insertions, 2 deletions
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())