summaryrefslogtreecommitdiffstats
path: root/client/go/jvm/options_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/go/jvm/options_test.go')
-rw-r--r--client/go/jvm/options_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/go/jvm/options_test.go b/client/go/jvm/options_test.go
index 99b6e8dd6f3..adf15885fd8 100644
--- a/client/go/jvm/options_test.go
+++ b/client/go/jvm/options_test.go
@@ -7,7 +7,12 @@ import (
"github.com/stretchr/testify/assert"
)
+func setup(t *testing.T) {
+ t.Setenv("VESPA_HOME", t.TempDir())
+}
+
func TestHeapSizeSimple(t *testing.T) {
+ setup(t)
var (
aa = MegaBytesOfMemory(123)
bb = MegaBytesOfMemory(234)
@@ -21,6 +26,7 @@ func TestHeapSizeSimple(t *testing.T) {
}
func TestHeapSizeMulti(t *testing.T) {
+ setup(t)
var (
aa = MegaBytesOfMemory(123)
bb = MegaBytesOfMemory(234)
@@ -49,6 +55,7 @@ func TestHeapSizeMulti(t *testing.T) {
}
func TestHeapSizeAdd(t *testing.T) {
+ setup(t)
var (
gg = MegaBytesOfMemory(12345)
hh = MegaBytesOfMemory(23456)
@@ -62,6 +69,7 @@ func TestHeapSizeAdd(t *testing.T) {
}
func TestHeapSizeNoAdd(t *testing.T) {
+ setup(t)
var (
bb = MegaBytesOfMemory(234)
cc = MegaBytesOfMemory(456)