aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/cache_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-17 02:06:51 +0900
committerOphestra <cat@gensokyo.uk>2026-04-17 02:06:51 +0900
commita394971dd75d8ad0287197553d3717dfb1d11b74 (patch)
tree49e9f8819a7148d67d2e153c0a7a0eb4bb1fc08d /cmd/mbf/cache_test.go
parent9daba6080992f7a965873936dc20a85385bbc269 (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'cmd/mbf/cache_test.go')
-rw-r--r--cmd/mbf/cache_test.go3
1 files changed, 1 insertions, 2 deletions
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(),