tidy config

This commit is contained in:
Thomas Tendyck 2022-09-11 16:09:05 +02:00 committed by Thomas Tendyck
parent 4038b14160
commit ab45d5fbfe
4 changed files with 77 additions and 76 deletions

View file

@ -23,8 +23,6 @@ import (
"go.uber.org/goleak"
)
const defaultMsgCount = 13 // expect this number of error messages by default because user-specific values are not set and multiple providers are defined by default
func TestMain(m *testing.M) {
goleak.VerifyTestMain(m)
}
@ -160,6 +158,8 @@ func TestFromFileStrictErrors(t *testing.T) {
}
func TestValidate(t *testing.T) {
const defaultMsgCount = 14 // expect this number of error messages by default because user-specific values are not set and multiple providers are defined by default
testCases := map[string]struct {
cnf *Config
wantMsgCount int