Update IPC socket path in tests to match configuration change
- Modify the test for the Claude executor to check for the IPC socket at the new path "/run/yao.sock" instead of the previous "/tmp/yao.sock". This aligns the test with the updated default configuration for the IPC socket path, ensuring consistency across the codebase.
This commit is contained in:
parent
6f50cf139a
commit
a372a56cf0
2 changed files with 3 additions and 3 deletions
|
|
@ -377,7 +377,7 @@ func TestClaudeExecutorIPCSocketMount(t *testing.T) {
|
|||
ctx := context.Background()
|
||||
|
||||
// Check if IPC socket exists in container
|
||||
output, err := exec.Exec(ctx, []string{"ls", "-la", "/tmp/yao.sock"})
|
||||
output, err := exec.Exec(ctx, []string{"ls", "-la", "/run/yao.sock"})
|
||||
require.NoError(t, err, "IPC socket should exist in container")
|
||||
assert.Contains(t, output, "yao.sock", "Should find yao.sock file")
|
||||
t.Logf("✓ IPC socket mounted: %s", strings.TrimSpace(output))
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ type Config struct {
|
|||
|
||||
// Container internal paths
|
||||
ContainerWorkDir string `json:"container_workdir,omitempty"` // Container working directory, default: /workspace
|
||||
ContainerIPCSocket string `json:"container_ipc_socket,omitempty"` // Container IPC socket path, default: /tmp/yao.sock
|
||||
ContainerIPCSocket string `json:"container_ipc_socket,omitempty"` // Container IPC socket path, default: /run/yao.sock
|
||||
ContainerUser string `json:"container_user,omitempty"` // Container user, default: "" (use image default). Set to "0" for root.
|
||||
|
||||
// VNC port mapping (for Docker Desktop on macOS/Windows where container IPs are not directly accessible)
|
||||
|
|
@ -112,7 +112,7 @@ func (c *Config) Init(dataRoot string) {
|
|||
if env := os.Getenv("YAO_SANDBOX_CONTAINER_IPC"); env != "" {
|
||||
c.ContainerIPCSocket = env
|
||||
} else if c.ContainerIPCSocket == "" {
|
||||
c.ContainerIPCSocket = "/tmp/yao.sock"
|
||||
c.ContainerIPCSocket = "/run/yao.sock"
|
||||
}
|
||||
|
||||
// Container user (for CI environments with UID mismatch)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue