test.EnsureTearDown does not cleanup resources completely #8560
Labels
area/test-and-release
It flags unit/e2e/conformance/perf test issues for product features
kind/bug
Categorizes issue or PR as related to a bug.
In what area(s)?
/area test-and-release
What version of Knative?
Build on e9c1ba1
Actual Behavior
After
EnsureCleanup()
was introduced, some tests like TestServiceGenerateName, TestRouteAndConfigGenerateName, TestImagePullError, etc, do not clean up resources.The reason is that, for example
TestServiceGenerateName
, test.EnsureTearDown registers emptynames
andnames.Service
is updated later.Expected Behavior
EnsureCleanup()
should cleanup resources completely.EnsureCleanup()
names with its address like:Steps to Reproduce the Problem
Run
TestServiceGenerateName
and check ksvc remains after the test.The text was updated successfully, but these errors were encountered: