Skip to content

Commit

Permalink
Merge pull request #857 from vardhaman22/fix-unit-test
Browse files Browse the repository at this point in the history
fix recorderror unit test
  • Loading branch information
vardhaman22 authored Feb 14, 2025
2 parents 027c0d1 + c21b363 commit da15395
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controller/aks-cluster-config-handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,10 @@ var _ = Describe("recordError", func() {
Expect(cl.Create(ctx, aksConfig)).To(Succeed())
})

AfterEach(func() {
Expect(test.CleanupAndWait(ctx, cl, aksConfig)).To(Succeed())
})

It("should return same conflict error when onChange returns a conflict error", func() {
oldOutput := logrus.StandardLogger().Out
buf := bytes.Buffer{}
Expand Down

0 comments on commit da15395

Please sign in to comment.