From b75dc1bdc092881c029e2be627610976f566e92b Mon Sep 17 00:00:00 2001 From: kruskall <99559985+kruskall@users.noreply.github.com> Date: Sat, 15 Nov 2025 15:20:28 +0100 Subject: [PATCH] test(TestGetFields): clear FieldsRegistry before running the test support -count flag and running the test multiple times by clearing the registry on each run --- libbeat/asset/registry_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/libbeat/asset/registry_test.go b/libbeat/asset/registry_test.go index daefe5c11d95..b001485caf71 100644 --- a/libbeat/asset/registry_test.go +++ b/libbeat/asset/registry_test.go @@ -24,6 +24,7 @@ import ( ) func TestGetFields(t *testing.T) { + clear(FieldsRegistry) data := "hello world" d, err := EncodeData(data)