This commit is contained in:
Oleg Zhurakousky
2020-07-16 17:08:55 +02:00
parent 13aa4700b1
commit 638c98cfb7
4 changed files with 71 additions and 56 deletions

View File

@@ -184,7 +184,7 @@ public class RSocketAutoConfigurationTests {
new SpringApplicationBuilder(AdditionalFunctionConfiguration.class).web(WebApplicationType.NONE).run(
"--logging.level.org.springframework.cloud.function=DEBUG",
"--spring.cloud.function.definition=reverse>localhost:" + portA,
"--spring.cloud.function.definition=reverse>localhost:" + portA + "|wrap",
"--spring.cloud.function.rsocket.bind-address=localhost",
"--spring.cloud.function.rsocket.bind-port=" + portB);
@@ -192,7 +192,7 @@ public class RSocketAutoConfigurationTests {
Mono<String> result = socket.requestResponse(DefaultPayload.create("\"hello\"")).map(Payload::getDataUtf8);
StepVerifier
.create(result)
.expectNext("\"OLLEHOLLEH\"")
.expectNext("\"(OLLEHOLLEH)\"")
.expectComplete()
.verify();
}