mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +00:00
node: fix hanging test
This commit is contained in:
parent
08e6333284
commit
6eab61a6a1
@ -102,6 +102,15 @@ class TwoPartyTradeProtocolTests {
|
||||
|
||||
val buyerSessionID = random63BitValue()
|
||||
|
||||
// We start the Buyer first, as the Seller sends the first message
|
||||
val bobResult = runBuyer(
|
||||
bobNode.smm,
|
||||
notaryNode.info,
|
||||
aliceNode.net.myAddress,
|
||||
1000.DOLLARS `issued by` issuer,
|
||||
CommercialPaper.State::class.java,
|
||||
buyerSessionID
|
||||
)
|
||||
val aliceResult = runSeller(
|
||||
aliceNode.smm,
|
||||
notaryNode.info,
|
||||
@ -111,14 +120,6 @@ class TwoPartyTradeProtocolTests {
|
||||
ALICE_KEY,
|
||||
buyerSessionID
|
||||
)
|
||||
val bobResult = runBuyer(
|
||||
bobNode.smm,
|
||||
notaryNode.info,
|
||||
aliceNode.net.myAddress,
|
||||
1000.DOLLARS `issued by` issuer,
|
||||
CommercialPaper.State::class.java,
|
||||
buyerSessionID
|
||||
)
|
||||
|
||||
// TODO: Verify that the result was inserted into the transaction database.
|
||||
// assertEquals(bobResult.get(), aliceNode.storage.validatedTransactions[aliceResult.get().id])
|
||||
|
Loading…
Reference in New Issue
Block a user