refactor: consolidate darwin unix socket test helpers (#21283)

This commit is contained in:
Zach
2025-12-16 09:11:54 -07:00
committed by GitHub
parent dac822b7f4
commit 174a6192fa
5 changed files with 56 additions and 97 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ func setupSocketServer(t *testing.T) (path string, cleanup func()) {
t.Helper()
// Use a temporary socket path for each test
socketPath := filepath.Join(tempDirUnixSocket(t), "test.sock")
socketPath := filepath.Join(testutil.TempDirUnixSocket(t), "test.sock")
// Create parent directory if needed
parentDir := filepath.Dir(socketPath)