mirror of
https://github.com/corda/corda.git
synced 2025-01-28 07:04:12 +00:00
Use system tmp dir instead of hardcoding unix path
This commit is contained in:
parent
b8538d5eb7
commit
8549a77a76
@ -44,7 +44,7 @@ class EnclaveletTest {
|
|||||||
val cashContract = MockContractAttachment(interpreter.services.cordappProvider.getContractAttachmentID(Cash.PROGRAM_ID)!!, Cash.PROGRAM_ID)
|
val cashContract = MockContractAttachment(interpreter.services.cordappProvider.getContractAttachmentID(Cash.PROGRAM_ID)!!, Cash.PROGRAM_ID)
|
||||||
val req = TransactionVerificationRequest(wtx3.serialize(), arrayOf(wtx1.serialize(), wtx2.serialize()), arrayOf(cashContract.serialize().bytes))
|
val req = TransactionVerificationRequest(wtx3.serialize(), arrayOf(wtx1.serialize(), wtx2.serialize()), arrayOf(cashContract.serialize().bytes))
|
||||||
val serialized = req.serialize()
|
val serialized = req.serialize()
|
||||||
Files.write(Paths.get("/tmp/req"), serialized.bytes)
|
Files.write(Paths.get(System.getProperty("java.io.tmpdir"), "req"), serialized.bytes)
|
||||||
verifyInEnclave(serialized.bytes)
|
verifyInEnclave(serialized.bytes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user