Skip to content

Commit 82b6e9e

Browse files
committed
simpler
1 parent a922768 commit 82b6e9e

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/test/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/Fabric8CatalogWatchWithEndpointSlicesAndNamespaceFilterIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ void beforeEach() {
6363

6464
@AfterEach
6565
void afterEach() {
66+
// busybox is deleted as part of the test itself, thus not seen here
6667
util.deleteNamespace(NAMESPACE_A);
6768
util.deleteNamespace(NAMESPACE_B);
6869
}

spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/test/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/Fabric8CatalogWatchWithEndpointSlicesIT.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.util.Set;
2020

2121
import io.fabric8.kubernetes.client.KubernetesClient;
22+
import org.junit.jupiter.api.AfterEach;
2223
import org.junit.jupiter.api.BeforeEach;
2324
import org.junit.jupiter.api.Test;
2425

@@ -53,6 +54,12 @@ void beforeEach() {
5354
util.busybox(NAMESPACE, Phase.CREATE);
5455
}
5556

57+
@AfterEach
58+
void afterEach() {
59+
// empty on purpose
60+
// busybox is deleted as part of the test itself, thus not seen here
61+
}
62+
5663
/**
5764
* <pre>
5865
* - we deploy a busybox service with 2 replica pods

spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/test/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/Fabric8CatalogWatchWithEndpointsAndNamespaceFilterIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ void beforeEach() {
6363

6464
@AfterEach
6565
void afterEach() {
66+
// busybox is deleted as part of the assertions, thus not seen here
6667
util.deleteNamespace(NAMESPACE_A);
6768
util.deleteNamespace(NAMESPACE_B);
6869
}

spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/test/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/Fabric8CatalogWatchWithEndpointsIT.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.util.Set;
2020

2121
import io.fabric8.kubernetes.client.KubernetesClient;
22+
import org.junit.jupiter.api.AfterEach;
2223
import org.junit.jupiter.api.BeforeEach;
2324
import org.junit.jupiter.api.Test;
2425

@@ -53,6 +54,12 @@ void beforeEach() {
5354
util.busybox(NAMESPACE, Phase.CREATE);
5455
}
5556

57+
@AfterEach
58+
void afterEach() {
59+
// empty on purpose
60+
// busybox is deleted as part of the test itself, thus not seen here
61+
}
62+
5663
/**
5764
* <pre>
5865
* - we deploy a busybox service with 2 replica pods

0 commit comments

Comments
 (0)