Demote quasar-core to a runtime dependency, and capsule to "compileOnly". (#1381)

This commit is contained in:
Chris Rankin
2017-09-01 11:12:04 +01:00
committed by GitHub
parent 2a794d9523
commit 66c35bbffa
6 changed files with 11 additions and 6 deletions

View File

@ -30,8 +30,10 @@ class FlowVersioningTest : NodeBasedTest() {
private class PretendInitiatingCoreFlow(val initiatedParty: Party) : FlowLogic<Pair<Int, Int>>() {
@Suspendable
override fun call(): Pair<Int, Int> {
// Execute receive() outside of the Pair constructor to avoid Kotlin/Quasar instrumentation bug.
val alicePlatformVersionAccordingToBob = receive<Int>(initiatedParty).unwrap { it }
return Pair(
receive<Int>(initiatedParty).unwrap { it },
alicePlatformVersionAccordingToBob,
getFlowContext(initiatedParty).flowVersion
)
}