Stop channel adapter and reset conn between tests
This commit is contained in:
@@ -22,6 +22,7 @@ import static org.awaitility.Awaitility.await;
|
||||
import java.time.Duration;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -97,6 +98,12 @@ public class ReactiveRedisStreamMessageProducerTests extends RedisAvailableTests
|
||||
this.template.delete(STREAM_KEY).block();
|
||||
}
|
||||
|
||||
@After
|
||||
public void tearDown() {
|
||||
this.redisStreamMessageProducer.stop();
|
||||
RedisAvailableRule.connectionFactory.resetConnection();
|
||||
}
|
||||
|
||||
@Test
|
||||
@RedisAvailable
|
||||
public void testConsumerGroupCreation() {
|
||||
|
||||
Reference in New Issue
Block a user