Skip to content

Commit 16f61b4

Browse files
authored
Increase assert timeout for DeprecationHttpIT to reduce risk of failing when test cluster is slow to warm up (fixes #115179) (#115621)
1 parent 3d307e0 commit 16f61b4

File tree

1 file changed

+12
-12
lines changed
  • x-pack/plugin/deprecation/qa/rest/src/javaRestTest/java/org/elasticsearch/xpack/deprecation

1 file changed

+12
-12
lines changed

x-pack/plugin/deprecation/qa/rest/src/javaRestTest/java/org/elasticsearch/xpack/deprecation/DeprecationHttpIT.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void testDeprecatedSettingsReturnWarnings() throws Exception {
121121
List<Map<String, Object>> documents = DeprecationTestUtils.getIndexedDeprecations(client(), xOpaqueId());
122122
logger.warn(documents);
123123
assertThat(documents, hasSize(2));
124-
}, 30, TimeUnit.SECONDS);
124+
}, 45, TimeUnit.SECONDS);
125125
} finally {
126126
Response response = cleanupSettings();
127127
List<String> warningHeaders = getWarningHeaders(response.getHeaders());
@@ -245,7 +245,7 @@ private void doTestDeprecationWarningsAppearInHeaders(String xOpaqueId) throws E
245245
var documents = DeprecationTestUtils.getIndexedDeprecations(client(), xOpaqueId);
246246
logger.warn(documents);
247247
assertThat(documents, hasSize(headerMatchers.size()));
248-
}, 30, TimeUnit.SECONDS);
248+
}, 45, TimeUnit.SECONDS);
249249
}
250250

251251
public void testDeprecationRouteThrottling() throws Exception {
@@ -275,7 +275,7 @@ public void testDeprecationRouteThrottling() throws Exception {
275275
)
276276
)
277277
);
278-
}, 30, TimeUnit.SECONDS);
278+
}, 45, TimeUnit.SECONDS);
279279

280280
}
281281

@@ -303,7 +303,7 @@ public void testDisableDeprecationLogIndexing() throws Exception {
303303
)
304304
)
305305
);
306-
}, 30, TimeUnit.SECONDS);
306+
}, 45, TimeUnit.SECONDS);
307307
} finally {
308308
configureWriteDeprecationLogsToIndex(null);
309309
}
@@ -369,7 +369,7 @@ public void testDeprecationMessagesCanBeIndexed() throws Exception {
369369
)
370370
)
371371
);
372-
}, 30, TimeUnit.SECONDS);
372+
}, 45, TimeUnit.SECONDS);
373373

374374
}
375375

@@ -414,7 +414,7 @@ public void testDeprecationCriticalWarnMessagesCanBeIndexed() throws Exception {
414414
)
415415
)
416416
);
417-
}, 30, TimeUnit.SECONDS);
417+
}, 45, TimeUnit.SECONDS);
418418

419419
}
420420

@@ -473,7 +473,7 @@ public void testDeprecationWarnMessagesCanBeIndexed() throws Exception {
473473
)
474474
)
475475
);
476-
}, 30, TimeUnit.SECONDS);
476+
}, 45, TimeUnit.SECONDS);
477477

478478
}
479479

@@ -504,7 +504,7 @@ public void testDeprecateAndKeep() throws Exception {
504504
)
505505
)
506506
);
507-
}, 30, TimeUnit.SECONDS);
507+
}, 45, TimeUnit.SECONDS);
508508
}
509509

510510
public void testReplacesInCurrentVersion() throws Exception {
@@ -534,7 +534,7 @@ public void testReplacesInCurrentVersion() throws Exception {
534534
)
535535
)
536536
);
537-
}, 30, TimeUnit.SECONDS);
537+
}, 45, TimeUnit.SECONDS);
538538
}
539539

540540
public void testReplacesInCompatibleVersion() throws Exception {
@@ -579,7 +579,7 @@ public void testReplacesInCompatibleVersion() throws Exception {
579579
)
580580
)
581581
);
582-
}, 30, TimeUnit.SECONDS);
582+
}, 45, TimeUnit.SECONDS);
583583
}
584584

585585
/**
@@ -649,7 +649,7 @@ public void testCompatibleMessagesCanBeIndexed() throws Exception {
649649
)
650650
)
651651
);
652-
}, 30, TimeUnit.SECONDS);
652+
}, 45, TimeUnit.SECONDS);
653653

654654
}
655655

@@ -690,7 +690,7 @@ public void testDeprecationIndexingCacheReset() throws Exception {
690690
)
691691
)
692692
);
693-
}, 30, TimeUnit.SECONDS);
693+
}, 45, TimeUnit.SECONDS);
694694

695695
}
696696

0 commit comments

Comments
 (0)