diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchAutoConfigurationTests.java
index 4b762beddd3..1af05a87895 100644
--- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchAutoConfigurationTests.java
+++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchAutoConfigurationTests.java
@@ -19,6 +19,7 @@ package org.springframework.boot.autoconfigure.data.elasticsearch;
import org.elasticsearch.client.Client;
import org.elasticsearch.client.node.NodeClient;
import org.junit.After;
+import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
@@ -45,11 +46,17 @@ public class ElasticsearchAutoConfigurationTests {
private AnnotationConfigApplicationContext context;
+ @Before
+ public void preventElasticsearchFromConfiguringNetty() {
+ System.setProperty("es.set.netty.runtime.available.processors", "false");
+ }
+
@After
public void close() {
if (this.context != null) {
this.context.close();
}
+ System.clearProperty("es.set.netty.runtime.available.processors");
}
@Test
diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/elasticsearch/jest/JestAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/elasticsearch/jest/JestAutoConfigurationTests.java
index 8e8660460c4..c59cbf939c2 100644
--- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/elasticsearch/jest/JestAutoConfigurationTests.java
+++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/elasticsearch/jest/JestAutoConfigurationTests.java
@@ -34,6 +34,7 @@ import org.elasticsearch.client.node.NodeClient;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.builder.SearchSourceBuilder;
import org.junit.After;
+import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
@@ -64,6 +65,11 @@ import static org.mockito.Mockito.mock;
*/
public class JestAutoConfigurationTests {
+ @Before
+ public void preventElasticsearchFromConfiguringNetty() {
+ System.setProperty("es.set.netty.runtime.available.processors", "false");
+ }
+
@Rule
public ExpectedException thrown = ExpectedException.none();
@@ -74,6 +80,7 @@ public class JestAutoConfigurationTests {
if (this.context != null) {
this.context.close();
}
+ System.clearProperty("es.set.netty.runtime.available.processors");
}
@Test
diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml
index 1d167c72cc2..477bb6401dc 100644
--- a/spring-boot-dependencies/pom.xml
+++ b/spring-boot-dependencies/pom.xml
@@ -76,7 +76,7 @@
2.0.0
4.2.0
2.3.26-incubating
- 5.4.0
+ 5.4.1
3.0.0
2.4.11
2.8.1