fix: validation for reporting (#610)

This commit is contained in:
Kota Kanbe
2018-03-07 14:01:52 +09:00
committed by GitHub
parent 86ba551e07
commit e6d3a1718c
3 changed files with 55 additions and 16 deletions

View File

@@ -55,6 +55,7 @@ func TestSyslogConfValidate(t *testing.T) {
}
for i, tt := range tests {
Conf.ToSyslog = true
errs := tt.conf.Validate()
if len(errs) != tt.expectedErrLength {
t.Errorf("test: %d, expected %d, actual %d", i, tt.expectedErrLength, len(errs))