Skip to content

Optimize for Flux to/from Mono conversions by Reactor [SPR-17203] #21736

@spring-projects-issues

Description

@spring-projects-issues

Kamil opened SPR-17203 and commented

I'm providing test case

If you run $ ./gradlew test then test will fail with:

java.lang.AssertionError: PublisherProbe should not have been cancelled but it was
	at reactor.test.publisher.PublisherProbe.assertWasNotCancelled(PublisherProbe.java:73)
	at com.example.demo.MyControllerTests.shouldAllowRetrieval(MyControllerTests.java:47)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:436)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:115) 

but if you edit build.gradle file and change Spring version back to 5.0.7.RELEASE (comment line 18) then test will pass.

 

It is believed that this commit broke it: d1c9401#diff-5d32a8109e4c3e46a7a012dfca5c0384R109


Affects: 5.0.8

Attachments:

Referenced from: commits 1bdbc7b

1 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions