Skip to content

Commit bbbbfe5

Browse files
Fix tests
1 parent 223c5cb commit bbbbfe5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -702,12 +702,11 @@ protected List<String> filteredWarnings() {
702702
protected final void assertSettingDeprecationsAndWarnings(final Setting<?>[] settings, final DeprecationWarning... warnings) {
703703
assertWarnings(true, Stream.concat(Arrays.stream(settings).map(setting -> {
704704
Level level = setting.getProperties().contains(Setting.Property.Deprecated) ? DeprecationLogger.CRITICAL : Level.WARN;
705-
String warningMessage = String.format(
706-
Locale.ROOT,
705+
String warningMessage = Strings.format(
707706
"[%s] setting was deprecated in Elasticsearch and will be removed in a future release. "
708-
+ "See the %s changes documentation for the next major version.",
707+
+ "See the %s documentation for the next major version.",
709708
setting.getKey(),
710-
(level == Level.WARN) ? "deprecation" : "breaking"
709+
(level == Level.WARN) ? "deprecation" : "breaking changes"
711710
);
712711
return new DeprecationWarning(level, warningMessage);
713712
}), Arrays.stream(warnings)).toArray(DeprecationWarning[]::new));

0 commit comments

Comments
 (0)