Fix distributed composition test

Added override of handleMessage(..) to FunctionRSocketMessageHandler to be able to register functions on demand instead of pre-registering all of them during the init
This commit is contained in:
Oleg Zhurakousky
2020-08-28 09:14:57 +02:00
parent 9ac98fd236
commit 123ced3fb6
5 changed files with 126 additions and 77 deletions

View File

@@ -220,7 +220,7 @@ public class RSocketAutoConfigurationTests {
}
}
@Disabled
// @Disabled
@Test
public void testRequestReplyFunctionWithComposition() {
int portA = SocketUtils.findAvailableTcpPort();
@@ -247,7 +247,7 @@ public class RSocketAutoConfigurationTests {
applicationContext2.getBean(RSocketRequester.Builder.class);
rsocketRequesterBuilder.tcp("localhost", portB)
.route("reverse")
.route("reverse>localhost:" + portA + "|wrap")
.data("\"hello\"")
.retrieveMono(String.class)
.as(StepVerifier::create)