Skip to content

Commit

Permalink
Removing dead code in tests (#1501)
Browse files Browse the repository at this point in the history
Co-authored-by: John Miller <john.miller@kasten.io>
  • Loading branch information
faradayfan and John Miller committed Jun 22, 2022
1 parent dbdeaa5 commit 1249170
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions pkg/function/scale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1249170

Please sign in to comment.