node: Fix compile after rebase

This commit is contained in:
Andras Slemmer 2016-09-08 16:24:25 +01:00
parent c04a3401c3
commit a23c1d019c

View File

@ -140,7 +140,7 @@ class WalletMonitorServiceTests {
// Check the returned event is correct // Check the returned event is correct
val tx = (event.state as TransactionBuildResult.ProtocolStarted).transaction val tx = (event.state as TransactionBuildResult.ProtocolStarted).transaction
assertNotNull(tx) assertNotNull(tx)
assertEquals(expectedState, tx!!.tx.outputs.single().data) assertEquals(expectedState, tx!!.outputs.single().data)
}, },
expect { event: ServiceToClientEvent.OutputState -> expect { event: ServiceToClientEvent.OutputState ->
// Check the generated state is correct // Check the generated state is correct
@ -202,8 +202,8 @@ class WalletMonitorServiceTests {
} }
), ),
expect { event: ServiceToClientEvent.Transaction -> expect { event: ServiceToClientEvent.Transaction ->
require(event.transaction.sigs.size == 1) require(event.transaction.mustSign.size == 1)
event.transaction.sigs.map { it.by }.toSet().containsAll( event.transaction.mustSign.containsAll(
listOf( listOf(
monitorServiceNode.services.storageService.myLegalIdentity.owningKey monitorServiceNode.services.storageService.myLegalIdentity.owningKey
) )