mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-13 10:27:28 -06:00
fix test broken due to addition of preloader
This commit is contained in:
parent
db91fe5a94
commit
c8de7f2760
1 changed files with 3 additions and 0 deletions
3
internal/cache/timeline/status_test.go
vendored
3
internal/cache/timeline/status_test.go
vendored
|
|
@ -205,6 +205,9 @@ func TestStatusTimelineInserts(t *testing.T) {
|
|||
maxID := maxStatusID(data)
|
||||
assert.Equal(t, maxID, maxStatus(&tt).ID)
|
||||
|
||||
// Manually mark timeline as 'preloaded'.
|
||||
tt.preloader.CheckPreload(tt.preloader.Done)
|
||||
|
||||
// Specifically craft a boost of latest (i.e. max) status in timeline.
|
||||
boost := >smodel.Status{ID: "06B1A00PQWDZZH9WK9P5VND35C", BoostOfID: maxID}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue