Upgrade some deps; fix compatibility with them
* Upgrade to the latest Spring portfolio stack; fix tests and effected classes * The move to the latest Micrometer does not affect code base
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2007-2020 the original author or authors.
|
||||
* Copyright 2007-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -135,7 +135,9 @@ public class RedisInboundChannelAdapter extends MessageProducerSupport {
|
||||
}
|
||||
adapter.afterPropertiesSet();
|
||||
this.container.addMessageListener(adapter, topicList);
|
||||
this.container.afterPropertiesSet();
|
||||
if (!this.container.isActive()) {
|
||||
this.container.afterPropertiesSet();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -61,7 +61,7 @@ public final class RedisAvailableRule implements MethodRule {
|
||||
.build();
|
||||
|
||||
connectionFactory = new LettuceConnectionFactory(redisStandaloneConfiguration, clientConfiguration);
|
||||
connectionFactory.setEagerInitialization(true);
|
||||
connectionFactory.afterPropertiesSet();
|
||||
}
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ public final class RedisAvailableRule implements MethodRule {
|
||||
if (redisAvailable != null) {
|
||||
if (connectionFactory != null) {
|
||||
try {
|
||||
connectionFactory.afterPropertiesSet();
|
||||
connectionFactory.initConnection();
|
||||
initialized = true;
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -68,7 +68,7 @@ public abstract class RedisAvailableTests {
|
||||
int n = 0;
|
||||
while (n++ < 300 &&
|
||||
(connection =
|
||||
TestUtils.getPropertyValue(container, "subscriptionTask.connection", RedisConnection.class))
|
||||
TestUtils.getPropertyValue(container, "subscriber.connection", RedisConnection.class))
|
||||
== null) {
|
||||
|
||||
Thread.sleep(100);
|
||||
@@ -84,7 +84,7 @@ public abstract class RedisAvailableTests {
|
||||
|
||||
protected void awaitContainerSubscribedWithPatterns(RedisMessageListenerContainer container) throws Exception {
|
||||
this.awaitContainerSubscribed(container);
|
||||
RedisConnection connection = TestUtils.getPropertyValue(container, "subscriptionTask.connection",
|
||||
RedisConnection connection = TestUtils.getPropertyValue(container, "subscriber.connection",
|
||||
RedisConnection.class);
|
||||
|
||||
int n = 0;
|
||||
|
||||
Reference in New Issue
Block a user