Skip to content

Commit

Permalink
Add error check
Browse files Browse the repository at this point in the history
Add error check in a test to address lint issues.
  • Loading branch information
belimawr committed Apr 12, 2024
1 parent 01178fe commit 59acf2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion logp/selective_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ func TestTypedCoreSelectors(t *testing.T) {
eventsCfg.ToFiles = defaultCfg.ToFiles
eventsCfg.Selectors = defaultCfg.Selectors

ConfigureWithTypedOutput(defaultCfg, eventsCfg, "log.type", "event")
if err := ConfigureWithTypedOutput(defaultCfg, eventsCfg, "log.type", "event"); err != nil {
t.Fatalf("could not configure logger: %s", err)
}

enabledSelector := NewLogger(logSelector)
disabledSelector := NewLogger("foo-selector")
Expand Down

0 comments on commit 59acf2d

Please sign in to comment.