From fc400124cb05bb13d206c2d05d472cf79b8090dd Mon Sep 17 00:00:00 2001 From: SamerJ Date: Wed, 4 Sep 2024 17:31:44 +0200 Subject: [PATCH] Operators no longer return errors when errors are set to silent --- pkg/stanza/operator/helper/transformer_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/stanza/operator/helper/transformer_test.go b/pkg/stanza/operator/helper/transformer_test.go index e3038ff18313..9e1ed76da5cd 100644 --- a/pkg/stanza/operator/helper/transformer_test.go +++ b/pkg/stanza/operator/helper/transformer_test.go @@ -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 @@ -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