From 7504d564a5047e3c666eaf21fe4f02fd0abe1f4d Mon Sep 17 00:00:00 2001 From: Digvijay Jatkar Date: Wed, 9 Sep 2026 19:29:13 +0100 Subject: [PATCH] EAPQE-6308 Normalize narrow no-break space in DisconnectedHostsTest --- .../test/runtime/multihosts/DisconnectedHostsTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/multihosts/src/test/java/org/jboss/hal/testsuite/test/runtime/multihosts/DisconnectedHostsTest.java b/tests/multihosts/src/test/java/org/jboss/hal/testsuite/test/runtime/multihosts/DisconnectedHostsTest.java index 4f8ebf9f..1333e94f 100644 --- a/tests/multihosts/src/test/java/org/jboss/hal/testsuite/test/runtime/multihosts/DisconnectedHostsTest.java +++ b/tests/multihosts/src/test/java/org/jboss/hal/testsuite/test/runtime/multihosts/DisconnectedHostsTest.java @@ -144,7 +144,9 @@ private String getLastDatetime(List eventList, String eventType) { .mapToLong(event -> event.get(TIMESTAMP).asLong()).max().getAsLong(); LocalDateTime ldt = LocalDateTime.ofInstant(Instant.ofEpochMilli(maxTimestamp), ZoneId.systemDefault()); - return ldt.format(DateTimeFormatter.ofLocalizedDate(FormatStyle.MEDIUM)) + ", " + String formatted = ldt.format(DateTimeFormatter.ofLocalizedDate(FormatStyle.MEDIUM)) + ", " + ldt.format(DateTimeFormatter.ofLocalizedTime(FormatStyle.MEDIUM)); + // Normalize narrow no-break space (U+202F) used by newer JDK locale data before AM/PM + return formatted.replace('\u202F', ' '); } }