Skip to content

Commit 1df4f92

Browse files
committed
Stop channel adapter and reset conn between tests
1 parent 0429666 commit 1df4f92

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spring-integration-redis/src/test/java/org/springframework/integration/redis/inbound/ReactiveRedisStreamMessageProducerTests.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import java.time.Duration;
2323
import java.util.concurrent.atomic.AtomicReference;
2424

25+
import org.junit.After;
2526
import org.junit.Before;
2627
import org.junit.Test;
2728
import org.junit.runner.RunWith;
@@ -97,6 +98,12 @@ public void delKey() {
9798
this.template.delete(STREAM_KEY).block();
9899
}
99100

101+
@After
102+
public void tearDown() {
103+
this.redisStreamMessageProducer.stop();
104+
RedisAvailableRule.connectionFactory.resetConnection();
105+
}
106+
100107
@Test
101108
@RedisAvailable
102109
public void testConsumerGroupCreation() {

0 commit comments

Comments
 (0)