From 0d1223f1dc0faefcf010d6ee3e5a1e9571a1ad1a Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 17 Jul 2025 12:30:43 +0200 Subject: syz-cluster: keep only one Cc list in SessionReport Currently, the list was both within the Series object and within the SessionReport object that also encloses Series. And, since only was was actually filled, we were unable to actually Cc the people from the series. Keep only the Cc list in the Series object and adjust the tests. --- syz-cluster/pkg/controller/testutil.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'syz-cluster/pkg/controller') diff --git a/syz-cluster/pkg/controller/testutil.go b/syz-cluster/pkg/controller/testutil.go index 9ec90f190..752f9e433 100644 --- a/syz-cluster/pkg/controller/testutil.go +++ b/syz-cluster/pkg/controller/testutil.go @@ -6,13 +6,14 @@ package controller import ( "context" "fmt" + "net/http/httptest" + "testing" + "time" + "github.com/google/syzkaller/syz-cluster/pkg/api" "github.com/google/syzkaller/syz-cluster/pkg/app" "github.com/google/syzkaller/syz-cluster/pkg/db" "github.com/stretchr/testify/assert" - "net/http/httptest" - "testing" - "time" ) type EntityIDs struct { @@ -59,6 +60,7 @@ func DummySeries() *api.Series { ExtID: "ext-id", Title: "test series name", Link: "http://link/to/series", + Cc: []string{"first@user.com", "second@user.com"}, Patches: []api.SeriesPatch{ { Seq: 1, -- cgit mrf-deployment