Skip to content

Commit 9bc6bda

Browse files
authored
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.
1 parent d99101f commit 9bc6bda

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-pulsar-test/src/main/java/org/springframework/pulsar/test/support/PulsarTestContainerSupport.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package org.springframework.pulsar.test.support;
1818

19-
import org.junit.jupiter.api.AfterAll;
2019
import org.junit.jupiter.api.BeforeAll;
2120
import org.testcontainers.containers.PulsarContainer;
2221
import org.testcontainers.junit.jupiter.Testcontainers;
@@ -42,8 +41,7 @@ static void startContainer() {
4241
PULSAR_CONTAINER.start();
4342
}
4443

45-
@AfterAll
46-
static void stopContainer() {
44+
static void stopContainer2() {
4745
PULSAR_CONTAINER.stop();
4846
}
4947

0 commit comments

Comments
 (0)