From 4d0bdd84b5b932e9700e700fc16cdbe8726f22f6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 7 Aug 2025 02:50:00 +0900 Subject: [PATCH] container: test respect verbose flag This reduces noise on test failure. Signed-off-by: Ophestra --- container/container_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/container/container_test.go b/container/container_test.go index 2db2c08..43ed9a0 100644 --- a/container/container_test.go +++ b/container/container_test.go @@ -20,7 +20,6 @@ import ( "hakurei.app/container/seccomp" "hakurei.app/container/vfs" "hakurei.app/hst" - "hakurei.app/internal" "hakurei.app/internal/hlog" ) @@ -106,7 +105,8 @@ func TestContainer(t *testing.T) { { oldVerbose := hlog.Load() oldOutput := container.GetOutput() - internal.InstallOutput(true) + hlog.Store(testing.Verbose()) + container.SetOutput(hlog.Output{}) t.Cleanup(func() { hlog.Store(oldVerbose) }) t.Cleanup(func() { container.SetOutput(oldOutput) }) }