From 518bbc340383d80133a4d09733674ed3acd023d2 Mon Sep 17 00:00:00 2001 From: Fred Lotter Date: Wed, 28 Aug 2024 21:05:46 +0200 Subject: [PATCH] remove redundant query --- internals/plan/plan_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internals/plan/plan_test.go b/internals/plan/plan_test.go index e1f7f002..1286254e 100644 --- a/internals/plan/plan_test.go +++ b/internals/plan/plan_test.go @@ -2077,7 +2077,7 @@ func (s *S) TestStartStopOrderMultipleLanes(c *C) { func (s *S) TestLayerBuiltinCompatible(c *C) { fields := structYamlFields(plan.Layer{}) c.Assert(len(fields), Equals, len(plan.BuiltinSections)) - for _, field := range structYamlFields(plan.Layer{}) { + for _, field := range fields { c.Assert(slices.Contains(plan.BuiltinSections, field), Equals, true) } }