mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-18 14:39:14 -06:00
[feature] support canceling scheduled tasks, some federation API performance improvements (#2329)
This commit is contained in:
parent
314dda196e
commit
41435a6c4e
23 changed files with 993 additions and 487 deletions
|
|
@ -48,7 +48,7 @@ func (suite *CleanerTestSuite) SetupTest() {
|
|||
suite.state.Caches.Init()
|
||||
|
||||
// Ensure scheduler started (even if unused).
|
||||
suite.state.Workers.Scheduler.Start(nil)
|
||||
suite.state.Workers.Scheduler.Start()
|
||||
|
||||
// Initialize test database.
|
||||
_ = testrig.NewTestDB(&suite.state)
|
||||
|
|
@ -58,6 +58,7 @@ func (suite *CleanerTestSuite) SetupTest() {
|
|||
suite.state.Storage = testrig.NewInMemoryStorage()
|
||||
|
||||
// Initialize test cleaner instance.
|
||||
testrig.StartWorkers(&suite.state)
|
||||
suite.cleaner = cleaner.New(&suite.state)
|
||||
|
||||
// Allocate new test model emojis.
|
||||
|
|
@ -66,6 +67,7 @@ func (suite *CleanerTestSuite) SetupTest() {
|
|||
|
||||
func (suite *CleanerTestSuite) TearDownTest() {
|
||||
testrig.StandardDBTeardown(suite.state.DB)
|
||||
testrig.StopWorkers(&suite.state)
|
||||
}
|
||||
|
||||
// mapvals extracts a slice of values from the values contained within the map.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue