Exception returning UnicastSubject Observable from flow
See original GitHub issueTo Reproduce
Create the following flow:
@StartableByRPC class ObservableSubject(val unicast: Boolean) : FlowLogic<rx.Observable<Int>>() { override fun call(): rx.Observable<Int> { val o: rx.Observable<Int> = if (unicast) UnicastSubject.create() else PublishSubject.create() return o } }
And the following driver test:
@Test fun unicastSujectTest() = driver(driverParameters) { val handle = startNode().getOrThrow() val observable = handle.rpc.startFlow(DataFeedFlow::ObservableSubject, **true**).returnValue.get() observable.subscribe().unsubscribe() println("string: $observable") }
When the test is with unicast=false the test completes without failure. When run with unicast=true (as above) the test fails with the stack trace included in the comment below.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Automatically created Jira issue: CORDA-3815
Maybe the Observables section should be moved to somewhere under Contributing -> Participating ?