From 8321b07ea1e3855c83760eaa03a1812014d3cd2f Mon Sep 17 00:00:00 2001 From: Mihail Stoykov <312246+mstoykov@users.noreply.github.com> Date: Thu, 23 May 2024 16:30:57 +0300 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Joan López de la Franca Beltran <5459617+joanlopez@users.noreply.github.com> --- api/v1/group_routes_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1/group_routes_test.go b/api/v1/group_routes_test.go index 92d8b1b4502..89167bbb5fa 100644 --- a/api/v1/group_routes_test.go +++ b/api/v1/group_routes_test.go @@ -66,7 +66,7 @@ func TestGetGroups(t *testing.T) { t.Parallel() cs := getControlSurface(t, getTestRunState(t, lib.Options{}, &minirunner.MiniRunner{})) - _ = cs.RunState.GroupSummary.Start() + require.NoError(t, cs.RunState.GroupSummary.Start()) cs.RunState.GroupSummary.AddMetricSamples([]metrics.SampleContainer{ metrics.Sample{ TimeSeries: metrics.TimeSeries{ @@ -87,7 +87,7 @@ func TestGetGroups(t *testing.T) { }, }, }) - _ = cs.RunState.GroupSummary.Stop() + require.NoError(t, cs.RunState.GroupSummary.Stop()) g0, err := lib.NewGroup("", nil) assert.NoError(t, err)