k8s/topgun - make use of cleanup in worker-lifecycle test
Despite the fact that we have a `cleanup` function that takes care of
what has been previously set, we were not making use of it.
@@ -27,9 +27,7 @@ var _ = Describe("Worker lifecycle", func() {
}
AfterEach(func() {
- helmDestroy(releaseName)
- Wait(Start(nil, "kubectl", "delete", "namespace", namespace, "--wait=false"))
- Wait(proxySession.Interrupt())
+ cleanup(releaseName, namespace, proxySession)
})
DescribeTable("retiring a worker",
