Skip to content

Commit

Permalink
[#1018] Fix address conversion test
Browse files Browse the repository at this point in the history
Clean up after converting empty address CR
  • Loading branch information
brusdev committed Sep 24, 2024
1 parent c1d96e1 commit 57c29be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions controllers/activemqartemisaddress_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,12 @@ var _ = Describe("Address controller tests", func() {
g.Expect(k8sClient.Get(ctx, addressCRKey, v2alpha1AddressCR)).Should(Succeed())
g.Expect(k8sClient.Update(ctx, v2alpha1AddressCR)).Should(Succeed())
}, timeout, interval).Should(Succeed())

Eventually(func(g Gomega) {
v1beta1CreatedAddressCR := &brokerv1beta1.ActiveMQArtemisAddress{}
g.Expect(k8sClient.Get(ctx, addressCRKey, v1beta1CreatedAddressCR)).Should(Succeed())
g.Expect(k8sClient.Delete(ctx, v1beta1CreatedAddressCR)).Should(Succeed())
}, timeout, interval).Should(Succeed())
})
})
})
Expand Down

0 comments on commit 57c29be

Please sign in to comment.