File tree 1 file changed +5
-0
lines changed
test/framework/src/test/java/org/elasticsearch/test/test
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,7 @@ public Settings transportClientSettings() {
220
220
221
221
assertClusters (cluster0 , cluster1 , false );
222
222
long seed = randomLong ();
223
+ boolean shouldAssertSettingsDeprecationsAndWarnings = false ;
223
224
try {
224
225
{
225
226
Random random = new Random (seed );
@@ -231,6 +232,7 @@ public Settings transportClientSettings() {
231
232
}
232
233
assertArrayEquals (cluster0 .getNodeNames (), cluster1 .getNodeNames ());
233
234
if (cluster0 .getNodeNames ().length > 0 ) {
235
+ shouldAssertSettingsDeprecationsAndWarnings = true ;
234
236
assertSettingDeprecationsAndWarnings (new Setting <?>[]{NetworkModule .HTTP_ENABLED });
235
237
}
236
238
Iterator <Client > iterator1 = cluster1 .getClients ().iterator ();
@@ -245,6 +247,9 @@ public Settings transportClientSettings() {
245
247
cluster1 .afterTest ();
246
248
} finally {
247
249
IOUtils .close (cluster0 , cluster1 );
250
+ if (shouldAssertSettingsDeprecationsAndWarnings ) {
251
+ assertSettingDeprecationsAndWarnings (new Setting <?>[]{NetworkModule .HTTP_ENABLED });
252
+ }
248
253
}
249
254
}
250
255
You can’t perform that action at this time.
0 commit comments