From c8de7f27602324b04958774fd9980af6c989b86f Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 9 Apr 2025 15:55:24 +0100 Subject: [PATCH] fix test broken due to addition of preloader --- internal/cache/timeline/status_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/cache/timeline/status_test.go b/internal/cache/timeline/status_test.go index 99a2054ba..3e53d8256 100644 --- a/internal/cache/timeline/status_test.go +++ b/internal/cache/timeline/status_test.go @@ -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}