Fix assertions in HttpClientSseClientTransportTests
This commit is contained in:
parent
0be6032728
commit
45589adf61
1 changed files with 1 additions and 1 deletions
|
|
@ -483,7 +483,7 @@ class HttpClientSseClientTransportTests {
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue