Skip to content

Commit e406ee5

Browse files
committed
Fix test assuming localhost
Signed-off-by: Dariusz Jędrzejczyk <2554306+chemicL@users.noreply.github.com>
1 parent 64fd31d commit e406ee5

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
@@ -415,7 +415,7 @@ void testAsyncRequestCustomizer() {
415415
void testMessageEndpointValidation() throws InvalidSseMessageEndpointException {
416416
var uriCaptor = ArgumentCaptor.forClass(URI.class);
417417
verify(sseMessageEndpointValidator).validate(uriCaptor.capture(), matches("/message\\?sessionId=[a-z0-9-]+"));
418-
assertThat(uriCaptor.getValue().toString()).matches("http://localhost:\\d+/sse");
418+
assertThat(uriCaptor.getValue().toString()).matches(host + "/sse");
419419
}
420420

421421
@Test

0 commit comments

Comments
 (0)