diff options
Diffstat (limited to 'modules/cache')
-rw-r--r-- | modules/cache/cache.go | 4 | ||||
-rw-r--r-- | modules/cache/cache_test.go | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/modules/cache/cache.go b/modules/cache/cache.go index e7630638bf..0198f8da73 100644 --- a/modules/cache/cache.go +++ b/modules/cache/cache.go @@ -16,9 +16,7 @@ import ( _ "gitea.com/go-chi/cache/memcache" // memcache plugin for cache ) -var ( - conn mc.Cache -) +var conn mc.Cache func newCache(cacheConfig setting.Cache) (mc.Cache, error) { return mc.NewCacher(mc.Options{ diff --git a/modules/cache/cache_test.go b/modules/cache/cache_test.go index 92be69252d..f418f77e46 100644 --- a/modules/cache/cache_test.go +++ b/modules/cache/cache_test.go @@ -113,6 +113,7 @@ func TestGetInt(t *testing.T) { // TODO: uncommented code works in IDE but not with go test } + func TestGetInt64(t *testing.T) { createTestCache() |