Stop channel adapter and reset conn between tests

This commit is contained in:
Artem Bilan
2020-10-08 13:27:13 -04:00
parent 04296664e3
commit 1df4f92cfd

View File

@@ -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() {