mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore] renames the GTS
caches to DB
caches (#3127)
* renames the `GTS` caches to `DB` caches, as it better references what they are * change remaining Caches.GTS uses to Caches.DB
This commit is contained in:
@@ -31,7 +31,7 @@ type FingerTestSuite struct {
|
||||
}
|
||||
|
||||
func (suite *FingerTestSuite) TestFinger() {
|
||||
wc := suite.state.Caches.GTS.Webfinger
|
||||
wc := suite.state.Caches.Webfinger
|
||||
suite.Equal(0, wc.Len(), "expect webfinger cache to be empty")
|
||||
|
||||
_, err := suite.transport.Finger(context.TODO(), "brand_new_person", "unknown-instance.com")
|
||||
@@ -43,7 +43,7 @@ func (suite *FingerTestSuite) TestFinger() {
|
||||
}
|
||||
|
||||
func (suite *FingerTestSuite) TestFingerWithHostMeta() {
|
||||
wc := suite.state.Caches.GTS.Webfinger
|
||||
wc := suite.state.Caches.Webfinger
|
||||
suite.Equal(0, wc.Len(), "expect webfinger cache to be empty")
|
||||
|
||||
_, err := suite.transport.Finger(context.TODO(), "someone", "misconfigured-instance.com")
|
||||
@@ -60,7 +60,7 @@ func (suite *FingerTestSuite) TestFingerWithHostMetaCacheStrategy() {
|
||||
suite.T().Skip("this test is flaky on CI for as of yet unknown reasons")
|
||||
}
|
||||
|
||||
wc := suite.state.Caches.GTS.Webfinger
|
||||
wc := suite.state.Caches.Webfinger
|
||||
|
||||
// Reset the sweep frequency so nothing interferes with the test
|
||||
wc.Stop()
|
||||
|
Reference in New Issue
Block a user