We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b92f20a commit 71f4d4dCopy full SHA for 71f4d4d
1 file changed
internal/runtime/docker_test.go
@@ -71,8 +71,8 @@ func TestSocketPath_ReturnsEmptyForTCPHost(t *testing.T) {
71
}
72
73
func TestSocketPath_VMDetection(t *testing.T) {
74
- home, err := os.UserHomeDir()
75
- require.NoError(t, err)
+ home := t.TempDir()
+ t.Setenv("HOME", home)
76
77
t.Run("colima socket exists returns remapped path", func(t *testing.T) {
78
colimaSock := filepath.Join(home, ".colima", "default", "docker.sock")
0 commit comments