(t testing.TB)
| 42 | } |
| 43 | |
| 44 | func AgentSocketPath(t testing.TB) string { |
| 45 | if runtime.GOOS == "windows" { |
| 46 | return fmt.Sprintf(`\\.\pipe\com.coder.agentsocket_test.%s.%s`, t.Name(), rand.Text()) |
| 47 | } |
| 48 | return filepath.Join(TempDirUnixSocket(t), "test.sock") |
| 49 | } |