From a394971dd75d8ad0287197553d3717dfb1d11b74 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 17 Apr 2026 02:06:51 +0900 Subject: cmd/mbf: do not abort cache acquisition during testing This can sometimes fire during testing due to how short the test is. Signed-off-by: Ophestra --- cmd/mbf/cache_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmd/mbf/cache_test.go') diff --git a/cmd/mbf/cache_test.go b/cmd/mbf/cache_test.go index 0f036542..a4d33af5 100644 --- a/cmd/mbf/cache_test.go +++ b/cmd/mbf/cache_test.go @@ -1,7 +1,6 @@ package main import ( - "context" "log" "os" "testing" @@ -14,7 +13,7 @@ func TestCache(t *testing.T) { t.Parallel() cm := cache{ - ctx: context.Background(), + ctx: t.Context(), msg: message.New(log.New(os.Stderr, "check: ", 0)), base: t.TempDir(), -- cgit v1.3.1