From 65fb30134ee8bb844848c6375686e38bcd9d609b Mon Sep 17 00:00:00 2001 From: Taeik Lim Date: Tue, 24 Sep 2019 11:10:19 +0900 Subject: [PATCH] Add tmpdir config to travis --- .travis.yml | 4 ++++ .../wallet/src/test/java/hera/keystore/JavaKeyStoreTest.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 03d8b068c..39ff0306c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,10 @@ jdk: dist: trusty +env: + global: + - TMPDIR=/tmp + sudo: false before_cache: diff --git a/client/wallet/src/test/java/hera/keystore/JavaKeyStoreTest.java b/client/wallet/src/test/java/hera/keystore/JavaKeyStoreTest.java index c03619085..54bfc2352 100644 --- a/client/wallet/src/test/java/hera/keystore/JavaKeyStoreTest.java +++ b/client/wallet/src/test/java/hera/keystore/JavaKeyStoreTest.java @@ -153,7 +153,7 @@ public void testStoreAndLoad() { final Authentication authentication = Authentication.of(identity, password); keyStore.save(authentication, key); - final String path = System.getProperty("java.io.tmpdir") + randomUUID().toString(); + final String path = System.getProperty("java.io.tmpdir") + "/" + randomUUID().toString(); final char[] keyStorePassword = randomUUID().toString().toCharArray(); keyStore.store(path, keyStorePassword);