From 0241baba08ba2fd732e46a9634434154d58092e3 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 10 Feb 2023 11:14:17 +0100 Subject: pkg/subsystem: extract names after all preprocessing In the previous steps we eliminate some of the extracted subsystems. It helps to have fewer contention while assigning the names. As a result, we need to only rely on emails during parents trasnformations. --- pkg/subsystem/linux/parents_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/subsystem/linux/parents_test.go') diff --git a/pkg/subsystem/linux/parents_test.go b/pkg/subsystem/linux/parents_test.go index 06f7e1a3c..f1942671d 100644 --- a/pkg/subsystem/linux/parents_test.go +++ b/pkg/subsystem/linux/parents_test.go @@ -39,7 +39,8 @@ func TestDropDuplicateSubsystems(t *testing.T) { expected = append(expected, kernel) // Fully overlap. - sameA, sameB := &entity.Subsystem{Name: "SameA"}, &entity.Subsystem{Name: "SameB"} + sameA := &entity.Subsystem{Lists: []string{"SameA@gmail.com"}} + sameB := &entity.Subsystem{Lists: []string{"SameB@gmail.com"}} matrix.Record(kernel, sameA, sameB) matrix.Record(kernel, sameA, sameB) matrix.Record(kernel, sameA, sameB) -- cgit mrf-deployment