@@ -49,31 +49,13 @@ tasks.named("dependencyLicenses").configure {
4949 mapping from : / netty-.*/ , to : ' netty'
5050}
5151
52- tasks. named(" test" ). configure {
53- /*
54- * We have to disable setting the number of available processors as tests in the same JVM randomize processors and will step on each
55- * other if we allow them to set the number of available processors as it's set-once in Netty.
56- */
57- systemProperty ' es.set.netty.runtime.available.processors' , ' false'
58- }
59-
60- tasks. named(" internalClusterTest" ). configure {
61- systemProperty ' es.set.netty.runtime.available.processors' , ' false'
62- }
63-
64- tasks. named(" javaRestTest" ). configure {
65- systemProperty ' es.set.netty.runtime.available.processors' , ' false'
66- }
67-
6852TaskProvider<Test > pooledTest = tasks. register(" pooledTest" , Test ) {
6953 include ' **/*Tests.class'
70- systemProperty ' es.set.netty.runtime.available.processors' , ' false'
7154 systemProperty ' es.use_unpooled_allocator' , ' false'
7255}
7356
7457TaskProvider<Test > pooledInternalClusterTest = tasks. register(" pooledInternalClusterTest" , Test ) {
7558 include ' **/*IT.class'
76- systemProperty ' es.set.netty.runtime.available.processors' , ' false'
7759 systemProperty ' es.use_unpooled_allocator' , ' false'
7860 SourceSetContainer sourceSets = project. getExtensions(). getByType(SourceSetContainer . class);
7961 SourceSet internalTestSourceSet = sourceSets. getByName(InternalClusterTestPlugin . SOURCE_SET_NAME )
@@ -82,7 +64,6 @@ TaskProvider<Test> pooledInternalClusterTest = tasks.register("pooledInternalClu
8264}
8365
8466TaskProvider<RestIntegTestTask > pooledJavaRestTest = tasks. register(" pooledJavaRestTest" , RestIntegTestTask ) {
85- systemProperty ' es.set.netty.runtime.available.processors' , ' false'
8667 SourceSetContainer sourceSets = project. getExtensions(). getByType(SourceSetContainer . class);
8768 SourceSet javaRestTestSourceSet = sourceSets. getByName(JavaRestTestPlugin . SOURCE_SET_NAME )
8869 setTestClassesDirs(javaRestTestSourceSet. getOutput(). getClassesDirs())
0 commit comments