mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-06 02:23:16 -06:00
[chore] Timeline test updates (#578)
* add admin boost of zork to test model * update tests to make them more determinate * remove printf call
This commit is contained in:
parent
27a3c1dc56
commit
5ef41ba3f2
5 changed files with 58 additions and 21 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue