mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-13 04:17:31 -06:00
start adding preloading support
This commit is contained in:
parent
6210ea33ee
commit
b3c9bfde18
7 changed files with 255 additions and 79 deletions
6
internal/cache/timeline/status_test.go
vendored
6
internal/cache/timeline/status_test.go
vendored
|
|
@ -273,6 +273,12 @@ func TestStatusTimelineTrim(t *testing.T) {
|
|||
assert.NotEqual(t, minID2, minStatus(&tt).ID)
|
||||
assert.False(t, containsStatusID(&tt, minID1))
|
||||
assert.False(t, containsStatusID(&tt, minID2))
|
||||
|
||||
// Trim at desired length
|
||||
// should cause no change.
|
||||
before := tt.cache.Len()
|
||||
tt.Trim()
|
||||
assert.Equal(t, before, tt.cache.Len())
|
||||
}
|
||||
|
||||
// containsStatusID returns whether timeline contains a status with ID.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue