mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-18 11:37:29 -06:00
[performance] update go-cache library (#1917)
* update go-cache library Signed-off-by: kim <grufwub@gmail.com> * fix broken test after cache library upgrade Signed-off-by: kim <grufwub@gmail.com> * fix the webfinger test Signed-off-by: kim <grufwub@gmail.com> --------- Signed-off-by: kim <grufwub@gmail.com>
This commit is contained in:
parent
831ae09f8b
commit
8e0043104d
6 changed files with 58 additions and 28 deletions
|
|
@ -87,11 +87,9 @@ func (suite *FingerTestSuite) TestFingerWithHostMetaCacheStrategy() {
|
|||
|
||||
// the TTL of the entry should have extended because we did a second
|
||||
// successful finger
|
||||
if repeatTime.Equal(initialTime) {
|
||||
if repeatTime == initialTime {
|
||||
suite.FailNowf("expected webfinger cache entry to have different expiry times", "initial: '%s', repeat: '%s'", initialTime, repeatTime)
|
||||
}
|
||||
|
||||
if repeatTime.Before(initialTime) {
|
||||
} else if repeatTime < initialTime {
|
||||
suite.FailNowf("expected webfinger cache entry to not be a time traveller", "initial: '%s', repeat: '%s'", initialTime, repeatTime)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue