mirror of
https://github.com/corda/corda.git
synced 2025-05-29 21:54:26 +00:00
node: fix hanging test
This commit is contained in:
parent
08e6333284
commit
6eab61a6a1
@ -102,6 +102,15 @@ class TwoPartyTradeProtocolTests {
|
|||||||
|
|
||||||
val buyerSessionID = random63BitValue()
|
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(
|
val aliceResult = runSeller(
|
||||||
aliceNode.smm,
|
aliceNode.smm,
|
||||||
notaryNode.info,
|
notaryNode.info,
|
||||||
@ -111,14 +120,6 @@ class TwoPartyTradeProtocolTests {
|
|||||||
ALICE_KEY,
|
ALICE_KEY,
|
||||||
buyerSessionID
|
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.
|
// TODO: Verify that the result was inserted into the transaction database.
|
||||||
// assertEquals(bobResult.get(), aliceNode.storage.validatedTransactions[aliceResult.get().id])
|
// assertEquals(bobResult.get(), aliceNode.storage.validatedTransactions[aliceResult.get().id])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user