Skip to content

Commit

Permalink
Prevent data dir from being created (#3572)
Browse files Browse the repository at this point in the history
  • Loading branch information
woutslakhorst authored Nov 20, 2024
1 parent 3553714 commit 5ebe372
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5ebe372

Please sign in to comment.