diff options
Diffstat (limited to 'testrig')
-rw-r--r-- | testrig/testmodels.go | 9 | ||||
-rw-r--r-- | testrig/util.go | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/testrig/testmodels.go b/testrig/testmodels.go index 6e3f87258..269bc9470 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -1845,6 +1845,15 @@ func NewTestNotifications() map[string]*gtsmodel.Notification { StatusID: "01F8MHAMCHF6Y650WCRSCP4WMY", Read: FalseBool(), }, + "local_account_2_like": { + ID: "01GTS6PRPXJYZBPFFQ56PP0XR8", + NotificationType: gtsmodel.NotificationFave, + CreatedAt: TimeMustParse("2022-01-13T12:45:01+02:00"), + TargetAccountID: "01F8MH17FWEB39HZJ76B6VXSKF", + OriginAccountID: "01F8MH5NBDF2MV7CTC4Q5128HF", + StatusID: "01F8MH75CBF9JFX4ZAD54N0W0R", + Read: FalseBool(), + }, } } diff --git a/testrig/util.go b/testrig/util.go index 2de5a7c40..d7183df1c 100644 --- a/testrig/util.go +++ b/testrig/util.go @@ -31,8 +31,8 @@ import ( ) func StartWorkers(state *state.State) { - state.Workers.EnqueueClientAPI = func(context.Context, messages.FromClientAPI) {} - state.Workers.EnqueueFederator = func(context.Context, messages.FromFederator) {} + state.Workers.EnqueueClientAPI = func(context.Context, ...messages.FromClientAPI) {} + state.Workers.EnqueueFederator = func(context.Context, ...messages.FromFederator) {} _ = state.Workers.Scheduler.Start(nil) _ = state.Workers.ClientAPI.Start(1, 10) |