From 1249170242be6258eb4dc9ed3fa001540c3d2767 Mon Sep 17 00:00:00 2001 From: John Miller Date: Wed, 22 Jun 2022 08:35:13 -0600 Subject: [PATCH] Removing dead code in tests (#1501) Co-authored-by: John Miller --- pkg/function/scale_test.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pkg/function/scale_test.go b/pkg/function/scale_test.go index 91918d50a8..50b668480a 100644 --- a/pkg/function/scale_test.go +++ b/pkg/function/scale_test.go @@ -224,16 +224,8 @@ func (s *ScaleSuite) TestScaleStatefulSet(c *C) { c.Assert(ok, Equals, true) } - pods, err := s.cli.CoreV1().Pods(s.namespace).List(ctx, metav1.ListOptions{}) + _, err = s.cli.CoreV1().Pods(s.namespace).List(ctx, metav1.ListOptions{}) c.Assert(err, IsNil) - - // This check can flake on underprovisioned clusters so we exit early. - c.SucceedNow() - for _, pod := range pods.Items { - for _, cs := range pod.Status.ContainerStatuses { - c.Assert(cs.State.Terminated, NotNil) - } - } } func (s *ScaleSuite) TestGetArgs(c *C) {