Skip to content

Commit

Permalink
Operators no longer return errors when errors are set to silent
Browse files Browse the repository at this point in the history
  • Loading branch information
SamerJ committed Sep 6, 2024
1 parent 0e2b8a0 commit fc40012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/stanza/operator/helper/transformer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func TestTransformerDropOnErrorQuiet(t *testing.T) {
}

err := transformer.ProcessWith(ctx, testEntry, transform)
require.Error(t, err)
require.NoError(t, err)
output.AssertNotCalled(t, "Process", mock.Anything, mock.Anything)

// Test output logs
Expand Down Expand Up @@ -233,7 +233,7 @@ func TestTransformerSendOnErrorQuiet(t *testing.T) {
}

err := transformer.ProcessWith(ctx, testEntry, transform)
require.Error(t, err)
require.NoError(t, err)
output.AssertCalled(t, "Process", mock.Anything, mock.Anything)

// Test output logs
Expand Down

0 comments on commit fc40012

Please sign in to comment.