Skip to content

Commit

Permalink
Merge pull request #876 from bryanv/bryanv/crd-cap-controller-race
Browse files Browse the repository at this point in the history
🐛 Fix CRD capability controller numExit races
  • Loading branch information
akutz authored Feb 4, 2025
2 parents b597f5f + 71ed6ea commit 035929e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ var _ = Describe(
)

BeforeEach(func() {
atomic.StoreInt32(&numExits, 0)
ctx = suite.NewIntegrationTestContext()
status = capv1.CapabilitiesStatus{}
obj = &capv1.Capabilities{
Expand All @@ -53,7 +54,6 @@ var _ = Describe(
})

AfterEach(func() {
atomic.StoreInt32(&numExits, 0)
Expect(ctx.Client.Delete(ctx, obj)).To(Succeed())
Eventually(apierrors.IsNotFound(
ctx.Client.Get(ctx, capabilities.ConfigMapKey, obj),
Expand Down

0 comments on commit 035929e

Please sign in to comment.