Skip to content

Commit 807cd95

Browse files
committed
Fix assertions in HttpClientSseClientTransportTests
1 parent 6da4262 commit 807cd95

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
@@ -483,7 +483,7 @@ void testAsyncRequestCustomizer() {
483483
void testMessageEndpointValidation() throws InvalidSseMessageEndpointException {
484484
var uriCaptor = ArgumentCaptor.forClass(URI.class);
485485
verify(sseMessageEndpointValidator).validate(uriCaptor.capture(), matches("/message\\?sessionId=[a-z0-9-]+"));
486-
assertThat(uriCaptor.getValue().toString()).matches("http://localhost:\\d+/sse");
486+
assertThat(uriCaptor.getValue().toString()).matches(host + "/sse");
487487
}
488488

489489
@Test

0 commit comments

Comments
 (0)