diff options
author | Arne Juul <arnej@yahooinc.com> | 2022-11-15 10:48:18 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2022-11-15 10:48:18 +0000 |
commit | 1967d94a0ef634cfe2a5c188211f9405a2545e0e (patch) | |
tree | 5be9734ce612810986431b42633ebd57250222a9 | |
parent | 0a7eb5f4331fdc51c4bf33d8470e657018ab607a (diff) |
set VESPA_HOME to redirect FixDir calls
-rw-r--r-- | client/go/jvm/options_test.go | 8 |
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) |