From e401eb604db656af39423bc036bcb5856fe37b27 Mon Sep 17 00:00:00 2001 From: Shams Asari Date: Wed, 27 Jun 2018 20:23:26 +0100 Subject: [PATCH] Fixed CordaRPCClient test to avoid potential flakiness (#3459) --- .../kotlin/net/corda/client/rpc/CordaRPCClientTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/rpc/src/integration-test/kotlin/net/corda/client/rpc/CordaRPCClientTest.kt b/client/rpc/src/integration-test/kotlin/net/corda/client/rpc/CordaRPCClientTest.kt index 2e6996978b..bd51bd3a36 100644 --- a/client/rpc/src/integration-test/kotlin/net/corda/client/rpc/CordaRPCClientTest.kt +++ b/client/rpc/src/integration-test/kotlin/net/corda/client/rpc/CordaRPCClientTest.kt @@ -237,7 +237,7 @@ class CordaRPCClientTest : NodeBasedTest(listOf("net.corda.finance")) { .joinToString(pathSeparator) // Create a Cash.State object for the StandaloneCashRpcClient to get - node.services.startFlow(CashIssueFlow(100.POUNDS, OpaqueBytes.of(1), identity), InvocationContext.shell()) + node.services.startFlow(CashIssueFlow(100.POUNDS, OpaqueBytes.of(1), identity), InvocationContext.shell()).flatMap { it.resultFuture }.getOrThrow() val outOfProcessRpc = ProcessUtilities.startJavaProcess( classpath = classpathWithoutFinance, arguments = listOf(node.internals.configuration.rpcOptions.address.toString(), financeLocation) @@ -282,7 +282,7 @@ class CordaRPCClientTest : NodeBasedTest(listOf("net.corda.finance")) { assertThat(state.javaClass.name).isEqualTo("net.corda.finance.contracts.asset.Cash${'$'}State") assertThat(state.amount.quantity).isEqualTo(10000) assertThat(state.amount.token.product).isEqualTo(Currency.getInstance("GBP")) - // This particular check assures us that the Cash.State that we have hasn't been carpented. + // This particular check assures us that the Cash.State we have hasn't been carpented. assertThat(state.participants).isEqualTo(listOf(state.owner)) } }