diff --git a/util/cli_test.go b/util/cli_test.go index 10b4809..1ebb082 100644 --- a/util/cli_test.go +++ b/util/cli_test.go @@ -97,6 +97,8 @@ func Test_setLogLevel(t *testing.T) { } for name, tt := range tests { t.Run(name, func(t *testing.T) { + prev := log.GetLevel() + t.Cleanup(func() { log.SetLevel(prev) }) cmd := &cli.Command{ Name: "test", Flags: []cli.Flag{