1
0
forked from rosa/hakurei

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>
This commit is contained in:
2026-04-17 02:06:51 +09:00
parent 9daba60809
commit a394971dd7
3 changed files with 62 additions and 72 deletions

View File

@@ -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(),