From 8549a77a7624bb4a35acc34b5ec39fdac293b311 Mon Sep 17 00:00:00 2001 From: Christian Sailer Date: Fri, 13 Oct 2017 16:31:44 +0100 Subject: [PATCH] Use system tmp dir instead of hardcoding unix path --- .../src/test/kotlin/com/r3/enclaves/txverify/EnclaveletTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verify-enclave/src/test/kotlin/com/r3/enclaves/txverify/EnclaveletTest.kt b/verify-enclave/src/test/kotlin/com/r3/enclaves/txverify/EnclaveletTest.kt index 329eb22b8e..0aa04f5c29 100644 --- a/verify-enclave/src/test/kotlin/com/r3/enclaves/txverify/EnclaveletTest.kt +++ b/verify-enclave/src/test/kotlin/com/r3/enclaves/txverify/EnclaveletTest.kt @@ -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) } }