Skip to content

Commit

Permalink
Update testing.go
Browse files Browse the repository at this point in the history
  • Loading branch information
matejvasek authored Sep 13, 2024
1 parent 51587f9 commit 097f7ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/testing/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ func FromTempDirectory(t *testing.T) string {
// By default unit tests presum no config exists unless provided in testdata.
t.Setenv("XDG_CONFIG_HOME", t.TempDir())

t.Setenv("HOME", t.TempDir())

t.Setenv("KUBERNETES_SERVICE_HOST", "")

// creates and CDs to a temp directory
Expand Down

0 comments on commit 097f7ca

Please sign in to comment.