diff --git a/cmd/root_test.go b/cmd/root_test.go index aee2367ab..90e8374d6 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()