diff options
author | 2022-05-16 18:48:59 +0200 | |
---|---|---|
committer | 2022-05-16 18:48:59 +0200 | |
commit | 5ef41ba3f21f4c2105f668fc35b6284749e17775 (patch) | |
tree | bd77afe69fab45d411bc6604f35737dcb941acda /internal/timeline/manager_test.go | |
parent | testrig: override bind address from environment variable (#577) (diff) | |
download | gotosocial-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/manager_test.go')
-rw-r--r-- | internal/timeline/manager_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/timeline/manager_test.go b/internal/timeline/manager_test.go index efa4ee261..8eb92a4e3 100644 --- a/internal/timeline/manager_test.go +++ b/internal/timeline/manager_test.go @@ -84,7 +84,7 @@ func (suite *ManagerTestSuite) TestManagerIntegration() { // oldest should now be set oldestIndexed, err = suite.manager.GetOldestIndexedID(context.Background(), testAccount.ID) suite.NoError(err) - suite.Equal("01F8MH75CBF9JFX4ZAD54N0W0R", oldestIndexed) + suite.Equal("01F8MH82FYRXD2RC6108DAJ5HB", oldestIndexed) // get hometimeline statuses, err := suite.manager.GetTimeline(context.Background(), testAccount.ID, "", "", "", 20, false) @@ -92,7 +92,7 @@ func (suite *ManagerTestSuite) TestManagerIntegration() { suite.Len(statuses, 15) // now wipe the last status from all timelines, as though it had been deleted by the owner - err = suite.manager.WipeItemFromAllTimelines(context.Background(), "01F8MH75CBF9JFX4ZAD54N0W0R") + err = suite.manager.WipeItemFromAllTimelines(context.Background(), "01F8MH82FYRXD2RC6108DAJ5HB") suite.NoError(err) // timeline should be shorter @@ -102,10 +102,10 @@ func (suite *ManagerTestSuite) TestManagerIntegration() { // oldest should now be different oldestIndexed, err = suite.manager.GetOldestIndexedID(context.Background(), testAccount.ID) suite.NoError(err) - suite.Equal("01F8MH82FYRXD2RC6108DAJ5HB", oldestIndexed) + suite.Equal("01F8MHAAY43M6RJ473VQFCVH37", oldestIndexed) // delete the new oldest status specifically from this timeline, as though local_account_1 had muted or blocked it - removed, err := suite.manager.Remove(context.Background(), testAccount.ID, "01F8MH82FYRXD2RC6108DAJ5HB") + removed, err := suite.manager.Remove(context.Background(), testAccount.ID, "01F8MHAAY43M6RJ473VQFCVH37") suite.NoError(err) suite.Equal(2, removed) // 1 status should be removed, but from both indexed and prepared, so 2 removals total @@ -116,7 +116,7 @@ func (suite *ManagerTestSuite) TestManagerIntegration() { // oldest should now be different oldestIndexed, err = suite.manager.GetOldestIndexedID(context.Background(), testAccount.ID) suite.NoError(err) - suite.Equal("01F8MHAAY43M6RJ473VQFCVH37", oldestIndexed) + suite.Equal("01F8MHAMCHF6Y650WCRSCP4WMY", oldestIndexed) // now remove all entries by local_account_2 from the timeline err = suite.manager.WipeItemsFromAccountID(context.Background(), testAccount.ID, suite.testAccounts["local_account_2"].ID) |