mirror of
https://github.com/corda/corda.git
synced 2024-12-22 06:17:55 +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) {
|
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) {
|
kryo.useClassLoader(classLoader) {
|
||||||
var outputs = kryo.readClassAndObject(input) as List<ContractState>
|
var outputs = kryo.readClassAndObject(input) as List<ContractState>
|
||||||
|
Loading…
Reference in New Issue
Block a user