Skip to content

Commit 599b43c

Browse files
committed
Fix assertions in HttpClientSseClientTransportTests
1 parent bf30e21 commit 599b43c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mcp-test/src/test/java/io/modelcontextprotocol/client/transport/HttpClientSseClientTransportTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ void testAsyncRequestCustomizer() {
422422
void testMessageEndpointValidation() throws InvalidSseMessageEndpointException {
423423
var uriCaptor = ArgumentCaptor.forClass(URI.class);
424424
verify(sseMessageEndpointValidator).validate(uriCaptor.capture(), matches("/message\\?sessionId=[a-z0-9-]+"));
425-
assertThat(uriCaptor.getValue().toString()).matches("http://localhost:\\d+/sse");
425+
assertThat(uriCaptor.getValue().toString()).matches(host + "/sse");
426426
}
427427

428428
@Test

0 commit comments

Comments
 (0)