Skip to content

Commit

Permalink
Tests: Add test in syslogger for LOG_EMERG level (#14942)
Browse files Browse the repository at this point in the history
Signed-off-by: Rajiv Harlalka <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Co-authored-by: Matt Lord <[email protected]>
  • Loading branch information
rajivharlalka and mattlord authored Jan 17, 2024
1 parent 8b7188a commit b3bb468
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions go/event/syslogger/syslogger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ func TestBadWriter(t *testing.T) {
if !strings.Contains(tl.getLog().level, wantLevel) {
t.Errorf("error log level [%s], want level [%s]", tl.getLog().level, wantLevel)
}
ev = &TestEvent{priority: syslog.LOG_EMERG, message: wantMsg}
event.Dispatch(ev)
if !strings.Contains(tl.getLog().level, wantLevel) {
t.Errorf("error log level [%s], want level [%s]", tl.getLog().level, wantLevel)
}

wantLevel = "WARNING"
ev = &TestEvent{priority: syslog.LOG_WARNING, message: wantMsg}
Expand Down

0 comments on commit b3bb468

Please sign in to comment.