cmd: avoid package state in cli constructors (#7719)

This commit is contained in:
Sam Kleinman
2022-01-31 09:52:30 -05:00
committed by GitHub
parent 95158636cd
commit a4e2f05d7a
22 changed files with 1041 additions and 943 deletions
-3
View File
@@ -37,9 +37,6 @@ func TestNewDefaultLogger(t *testing.T) {
_, err := log.NewDefaultLogger(tc.format, tc.level)
if tc.expectErr {
require.Error(t, err)
require.Panics(t, func() {
_ = log.MustNewDefaultLogger(tc.format, tc.level)
})
} else {
require.NoError(t, err)
}