Use system tmp dir instead of hardcoding unix path

This commit is contained in:
Christian Sailer 2017-10-13 16:31:44 +01:00
parent b8538d5eb7
commit 8549a77a76

View File

@ -44,7 +44,7 @@ class EnclaveletTest {
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 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)
}
}