Skip to content

fix(test): platform-conditional socket path assertion for Windows#1270

Merged
rgbkrk merged 1 commit intomainfrom
quill/fix-windows-socket-test
Mar 28, 2026
Merged

fix(test): platform-conditional socket path assertion for Windows#1270
rgbkrk merged 1 commit intomainfrom
quill/fix-windows-socket-test

Conversation

@rgbkrk
Copy link
Copy Markdown
Member

@rgbkrk rgbkrk commented Mar 28, 2026

Summary

test_daemon_config_default fails on Windows because it asserts the socket path contains "runtimed.sock" — a Unix domain socket filename. On Windows, the daemon uses named pipes (\\.\pipe\runtimed) instead, so the assertion never holds.

Adds #[cfg(unix)] and #[cfg(windows)] guards so each platform checks its own socket path format, matching the existing platform-conditional logic in runt-workspace.

Verification

  • Windows CI passes cargo test -p runtimed test_daemon_config_default
  • Unix CI still passes the same test

PR submitted by @rgbkrk's agent, Quill

The test_daemon_config_default test asserts the socket path contains
"runtimed.sock", which is only valid on Unix. On Windows, the daemon
uses named pipes (\\.\pipe\runtimed) instead. Add #[cfg(unix)] and
#[cfg(windows)] guards so each platform checks its own format.
@github-actions github-actions Bot added daemon runtimed daemon, kernel management, sync server quill PR authored by Quill Agent 🦆 labels Mar 28, 2026
@rgbkrk rgbkrk enabled auto-merge (squash) March 28, 2026 16:47
@rgbkrk rgbkrk merged commit 0e0330b into main Mar 28, 2026
21 checks passed
@rgbkrk rgbkrk deleted the quill/fix-windows-socket-test branch March 28, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

daemon runtimed daemon, kernel management, sync server quill PR authored by Quill Agent 🦆

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant