From b7e484c3d8824503831c483e14b26595791f505c Mon Sep 17 00:00:00 2001 From: Adel El-Beik Date: Fri, 29 Sep 2023 16:14:10 +0100 Subject: [PATCH] ENT-9943: Missed test that had assumed party id was still a long, now updated to string. --- .../net/corda/node/flows/FinalityFlowErrorHandlingTest.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/node/src/integration-test-slow/kotlin/net/corda/node/flows/FinalityFlowErrorHandlingTest.kt b/node/src/integration-test-slow/kotlin/net/corda/node/flows/FinalityFlowErrorHandlingTest.kt index 2ea07f4c7a..dc0133f575 100644 --- a/node/src/integration-test-slow/kotlin/net/corda/node/flows/FinalityFlowErrorHandlingTest.kt +++ b/node/src/integration-test-slow/kotlin/net/corda/node/flows/FinalityFlowErrorHandlingTest.kt @@ -74,7 +74,7 @@ class FinalityFlowErrorHandlingTest : StateMachineErrorHandlingTest() { alice.rpc.startFlow(::GetFlowTransaction, txId).returnValue.getOrThrow().apply { assertEquals("V", this.first) // "V" -> VERIFIED - assertEquals(CHARLIE_NAME.hashCode().toLong(), this.second) // peer + assertEquals(SecureHash.sha256(CHARLIE_NAME.toString()).toString(), this.second) // peer } } } @@ -83,9 +83,9 @@ class FinalityFlowErrorHandlingTest : StateMachineErrorHandlingTest() { // Internal use for testing only!! @StartableByRPC -class GetFlowTransaction(private val txId: SecureHash) : FlowLogic>() { +class GetFlowTransaction(private val txId: SecureHash) : FlowLogic>() { @Suspendable - override fun call(): Pair { + override fun call(): Pair { val transactionStatus = serviceHub.jdbcSession().prepareStatement("select * from node_transactions where tx_id = ?") .apply { setString(1, txId.toString()) } .use { ps -> @@ -99,7 +99,7 @@ class GetFlowTransaction(private val txId: SecureHash) : FlowLogic ps.executeQuery().use { rs -> rs.next() - rs.getLong(4) // receiverPartyId + rs.getString(4) // receiverPartyId } } return Pair(transactionStatus, receiverPartyId)