diff options
Diffstat (limited to 'internal/sandbox/container_test.go')
| -rw-r--r-- | internal/sandbox/container_test.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/sandbox/container_test.go b/internal/sandbox/container_test.go index 1a629d99..55df60b2 100644 --- a/internal/sandbox/container_test.go +++ b/internal/sandbox/container_test.go @@ -23,8 +23,10 @@ import ( func TestContainer(t *testing.T) { { oldVerbose := fmsg.Load() - fmsg.Store(true) + oldOutput := sandbox.GetOutput() + internal.InstallFmsg(true) t.Cleanup(func() { fmsg.Store(oldVerbose) }) + t.Cleanup(func() { sandbox.SetOutput(oldOutput) }) } testCases := []struct { @@ -146,7 +148,8 @@ func TestHelperInit(t *testing.T) { if len(os.Args) != 5 || os.Args[4] != "init" { return } - sandbox.Init(internal.Exit) + sandbox.SetOutput(fmsg.Output{}) + sandbox.Init(fmsg.Prepare, internal.InstallFmsg) } func TestHelperCheckContainer(t *testing.T) { |
