From b48320ae4f0476d00e96a170fe3a929f0b89b286 Mon Sep 17 00:00:00 2001 From: nicklesimba Date: Mon, 24 Jul 2023 17:21:28 -0500 Subject: [PATCH] delete pod after unit test run Signed-off-by: nicklesimba --- pkg/reconciler/ip_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/reconciler/ip_test.go b/pkg/reconciler/ip_test.go index 19bec9fd2..27f29a567 100644 --- a/pkg/reconciler/ip_test.go +++ b/pkg/reconciler/ip_test.go @@ -304,6 +304,7 @@ var _ = Describe("Whereabouts IP reconciler", func() { clusterWideIPAllocations, err := wbClient.WhereaboutsV1alpha1().OverlappingRangeIPReservations(namespace).List(context.TODO(), metav1.ListOptions{}) Expect(err).NotTo(HaveOccurred()) Expect(clusterWideIPAllocations.Items).To(HaveLen(expectedClusterWideIPs)) + Expect(k8sClientSet.CoreV1().Pods(namespace).Delete(context.TODO(), pods[0].Name, metav1.DeleteOptions{})).NotTo(HaveOccurred()) }) })