Fix CI failures caused by previous commit (#616)

The previous commit annotated `PulsarTestContainerSupport#stopContainer`
with `@ AfterAll`. This had unintended side effects when used in nested
Jupiter tests. This commit removes the annotation from the stop method.
This commit is contained in:
Chris Bono
2024-03-18 00:17:03 -05:00
committed by GitHub
parent d99101ff27
commit 9bc6bda306

View File

@@ -16,7 +16,6 @@
package org.springframework.pulsar.test.support;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.testcontainers.containers.PulsarContainer;
import org.testcontainers.junit.jupiter.Testcontainers;
@@ -42,8 +41,7 @@ public interface PulsarTestContainerSupport {
PULSAR_CONTAINER.start();
}
@AfterAll
static void stopContainer() {
static void stopContainer2() {
PULSAR_CONTAINER.stop();
}