diff --git a/test-frame-common/src/main/java/io/skodjob/testframe/resources/KubeResourceManager.java b/test-frame-common/src/main/java/io/skodjob/testframe/resources/KubeResourceManager.java index 5f8975e..c580649 100644 --- a/test-frame-common/src/main/java/io/skodjob/testframe/resources/KubeResourceManager.java +++ b/test-frame-common/src/main/java/io/skodjob/testframe/resources/KubeResourceManager.java @@ -476,14 +476,6 @@ public final boolean waitResourceCondition(T resource, R T res = getKubeClient().getClient().resource(resource).get(); resourceReady[0] = condition.predicate().test(res); return resourceReady[0]; - }, - () -> { - T res = getKubeClient().getClient().resource(resource).get(); - if (type == null) { - client.getClient().resource(resource).delete(); - } else { - type.delete(res); - } }); return resourceReady[0];