From f6d3147ba1a5f8636d773e3d4b61bf235fa55629 Mon Sep 17 00:00:00 2001 From: Moritz Marquardt Date: Tue, 2 Apr 2024 00:16:30 +0200 Subject: [PATCH] Fix tests not running --- server/handler/handler_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/handler/handler_test.go b/server/handler/handler_test.go index 4cb859a..254402f 100644 --- a/server/handler/handler_test.go +++ b/server/handler/handler_test.go @@ -1,6 +1,7 @@ package handler import ( + "github.com/OrlovEvgeny/go-mcache" "net/http" "net/http/httptest" "testing" @@ -29,7 +30,7 @@ func TestHandlerPerformance(t *testing.T) { AllowedCorsDomains: []string{"raw.codeberg.org", "fonts.codeberg.org", "design.codeberg.org"}, PagesBranches: []string{"pages"}, } - testHandler := Handler(serverCfg, giteaClient, cache.NewInMemoryCache(), cache.NewInMemoryCache(), cache.NewInMemoryCache()) + testHandler := Handler(serverCfg, giteaClient, mcache.New(), cache.NewInMemoryCache(), cache.NewInMemoryCache()) testCase := func(uri string, status int) { t.Run(uri, func(t *testing.T) {