mirror of
https://github.com/corda/corda.git
synced 2024-12-21 13:57:54 +00:00
fixed unit test TwoPartyTradeProtocolTests
This commit is contained in:
parent
e5dbf5d2a8
commit
1156e5ef52
@ -231,7 +231,8 @@ fun createKryo(k: Kryo = core.serialization.Kryo2()): Kryo {
|
||||
|
||||
if (kryo is core.serialization.Kryo2) {
|
||||
|
||||
val classLoader = core.node.ClassLoader.create( attachments?.map { kryo.attachmentStorage?.openAttachment(it)!! } )
|
||||
// .filterNotNull in order for TwoPartyTradeProtocolTests.checkDependenciesOfSaleAssetAreResolved test to run
|
||||
val classLoader = core.node.ClassLoader.create( attachments?.map { kryo.attachmentStorage?.openAttachment(it) }.filterNotNull() )
|
||||
|
||||
kryo.useClassLoader(classLoader) {
|
||||
var outputs = kryo.readClassAndObject(input) as List<ContractState>
|
||||
|
Loading…
Reference in New Issue
Block a user