diff options
Diffstat (limited to 'cmd/mbf/cache.go')
| -rw-r--r-- | cmd/mbf/cache.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/mbf/cache.go b/cmd/mbf/cache.go index 16e77cbc..316e303d 100644 --- a/cmd/mbf/cache.go +++ b/cmd/mbf/cache.go @@ -4,6 +4,7 @@ import ( "context" "os" "path/filepath" + "testing" "hakurei.app/check" "hakurei.app/internal/pkg" @@ -53,6 +54,9 @@ func (cache *cache) open() (err error) { go func() { select { case <-cache.ctx.Done(): + if testing.Testing() { + return + } os.Exit(2) case <-done: |
