Fix assertion in WebFluxSseClientTransportTests

Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
This commit is contained in:
Daniel Garnier-Moiroux 2026-05-04 17:00:41 +02:00 • committed by Daniel Garnier-Moiroux
commit 02d1f3edd0

View file

@ -380,7 +380,7 @@ class WebFluxSseClientTransportTests {
void testMessageEndpointValidation() throws InvalidSseMessageEndpointException {
var uriCaptor = ArgumentCaptor.forClass(URI.class);
verify(sseMessageEndpointValidator).validate(uriCaptor.capture(), matches("/message\\?sessionId=[a-z0-9-]+"));
assertThat(uriCaptor.getValue().toString()).matches("http://localhost:\\d+/sse");
assertThat(uriCaptor.getValue().toString()).matches(host + "/sse");
}
@Test