diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-07 02:50:00 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-07 02:50:00 +0900 |
| commit | 4d0bdd84b5b932e9700e700fc16cdbe8726f22f6 (patch) | |
| tree | 276b088b70f209237bb70e0d8ad1f0d2a38a5c08 | |
| parent | 72a931a71a4722c0e56b231d07787bef608ceedc (diff) | |
container: test respect verbose flag
This reduces noise on test failure.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | container/container_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/container/container_test.go b/container/container_test.go index 2db2c08e..43ed9a0d 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) }) } |
