Fix crew test expecting CLAUDE.md to be created
The test expected CLAUDE.md to be created by Add(), but the code intentionally skips this (CLAUDE.md is injected via SessionStart hook to avoid leaking Gas Town context into project repos). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -69,10 +69,8 @@ func TestManagerAddAndGet(t *testing.T) {
|
|||||||
t.Error("mail directory was not created")
|
t.Error("mail directory was not created")
|
||||||
}
|
}
|
||||||
|
|
||||||
claudeMD := filepath.Join(crewDir, "CLAUDE.md")
|
// NOTE: CLAUDE.md is NOT created by Add() - it's injected via SessionStart hook
|
||||||
if _, err := os.Stat(claudeMD); os.IsNotExist(err) {
|
// See manager.go line 107-110 for why we skip CLAUDE.md creation
|
||||||
t.Error("CLAUDE.md was not created")
|
|
||||||
}
|
|
||||||
|
|
||||||
stateFile := filepath.Join(crewDir, "state.json")
|
stateFile := filepath.Join(crewDir, "state.json")
|
||||||
if _, err := os.Stat(stateFile); os.IsNotExist(err) {
|
if _, err := os.Stat(stateFile); os.IsNotExist(err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user