From 78d2087580682436c3798c65fa36c3f1ac1486aa Mon Sep 17 00:00:00 2001 From: Wout Slakhorst Date: Tue, 19 Nov 2024 11:37:59 +0100 Subject: [PATCH] Prevent data dir from being created --- cmd/root_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/root_test.go b/cmd/root_test.go index aee2367ab3..90e8374d6d 100644 --- a/cmd/root_test.go +++ b/cmd/root_test.go @@ -141,6 +141,8 @@ func Test_serverCmd(t *testing.T) { assert.Error(t, err, "unable to start") }) t.Run("migration fails", func(t *testing.T) { + testDirectory := io.TestDirectory(t) + t.Setenv("NUTS_DATADIR", testDirectory) ctrl := gomock.NewController(t) r := core.NewMockMigratable(ctrl) system := core.NewSystem()