Skip to content

Commit feac466

Browse files
easelclaude
andcommitted
fix(tests): Windows and missing-binary test compatibility
- Skip TestGetProcessGroupID on Windows (no process groups) - Skip TestAtomicWriteFileConcurrent on Windows (different semantics) - Skip TestRoleAgentConfigWithCustomAgent when claude/opencode missing - Skip TestCustomClaudeVariants when claude binary missing - Build test binary with BuiltProperly=1 ldflags for integration tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5654dca commit feac466

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/config/loader_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,6 +2450,7 @@ func TestRoleAgentConfigWithCustomAgent(t *testing.T) {
24502450
t.Skip("test has Windows file I/O issues - settings not persisting before read")
24512451
}
24522452
t.Parallel()
2453+
skipIfAgentBinaryMissing(t, "claude", "opencode")
24532454

24542455
townRoot := t.TempDir()
24552456
rigPath := filepath.Join(townRoot, "testrig")
@@ -2634,6 +2635,7 @@ func TestCustomClaudeVariants(t *testing.T) {
26342635
t.Skip("test has Windows file I/O issues - settings not persisting before read")
26352636
}
26362637
t.Parallel()
2638+
skipIfAgentBinaryMissing(t, "claude")
26372639

26382640
// Verify that claude-opus/sonnet/haiku are NOT built-in presets
26392641
variants := []string{"claude-opus", "claude-sonnet", "claude-haiku"}

0 commit comments

Comments
 (0)