From 5d50967a0d29c39086df1de86211200a0cf72f8c Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Mon, 20 Oct 2025 02:27:16 +0300 Subject: [PATCH] lint Signed-off-by: Mohammed Al Sahaf --- modules/logging/filters_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/logging/filters_test.go b/modules/logging/filters_test.go index 42aa29757..cf35e7178 100644 --- a/modules/logging/filters_test.go +++ b/modules/logging/filters_test.go @@ -404,12 +404,12 @@ func TestMultiRegexpFilterInputSizeLimit(t *testing.T) { // Test with very large input (should be truncated) largeInput := strings.Repeat("test", 300000) // Creates ~1.2MB string out := f.Filter(zapcore.Field{String: largeInput}) - + // The input should be truncated to 1MB and still processed if len(out.String) > 1000000 { t.Fatalf("output string not truncated: length %d", len(out.String)) } - + // Should still contain replacements within the truncated portion if !strings.Contains(out.String, "REPLACED") { t.Fatalf("replacements not applied to truncated input")