aboutsummaryrefslogtreecommitdiffstats
path: root/cache/repo_cache_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2023-08-11 15:12:28 +0200
committerMichael Muré <batolettre@gmail.com>2023-08-11 15:13:15 +0200
commitf5e094f2c431f5a03d899b0866692e3534c72066 (patch)
tree4cd065e8f908869bf25835f7c522f4133f607f41 /cache/repo_cache_test.go
parente723f773f39de0ce152ec31227de3ec898846e2f (diff)
downloadgit-bug-f5e094f2c431f5a03d899b0866692e3534c72066.tar.gz
update to golang-lru v2
Diffstat (limited to 'cache/repo_cache_test.go')
-rw-r--r--cache/repo_cache_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache/repo_cache_test.go b/cache/repo_cache_test.go
index 3c11220d..e3a9cc15 100644
--- a/cache/repo_cache_test.go
+++ b/cache/repo_cache_test.go
@@ -318,7 +318,7 @@ func TestCacheEviction(t *testing.T) {
checkBugPresence(t, repoCache, bug2, true)
checkBugPresence(t, repoCache, bug3, true)
- // Accessing bug should update position in lruCache and therefore it should not be evicted
+ // Accessing bug should update position in lruCache, and therefore it should not be evicted
repoCache.bugs.lru.Get(bug2.Id())
oldestId, _ := repoCache.bugs.lru.GetOldest()
require.Equal(t, bug3.Id(), oldestId)