Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(test): update daemon tests after removing acceptance_criteria/context_refs

Naiyuan Qing395814b16a22
diff --git a/server/internal/daemon/daemon_test.go b/server/internal/daemon/daemon_test.go
index 849ef4fedf..0249a19dc2 100644
--- a/server/internal/daemon/daemon_test.go
+++ b/server/internal/daemon/daemon_test.go
@@ -24,9 +24,8 @@ func TestBuildPromptIncludesIssueAndContext(t *testing.T) {
prompt := BuildPrompt(Task{
Context: TaskContext{
Issue: IssueContext{
- Title: "Fix failing test",
- Description: "Investigate and fix the test failure.",
- AcceptanceCriteria: []string{"tests pass"},
+ Title: "Fix failing test",
+ Description: "Investigate and fix the test failure.",
},
Agent: AgentContext{
Name: "Local Codex",
@@ -37,11 +36,10 @@ func TestBuildPromptIncludesIssueAndContext(t *testing.T) {
},
})
- // Lean prompt: issue + acceptance criteria only. No inlined skill content.
+ // Lean prompt: issue title + description only. No inlined skill content.
for _, want := range []string{
"Fix failing test",
"Investigate and fix the test failure.",
- "tests pass",
} {
if !strings.Contains(prompt, want) {
t.Fatalf("prompt missing %q", want)
diff --git a/server/internal/daemon/execenv/execenv_test.go b/server/internal/daemon/execenv/execenv_test.go
index 20c7f4ecac..5a3f9ce0f6 100644
--- a/server/internal/daemon/execenv/execenv_test.go
+++ b/server/internal/daemon/execenv/execenv_test.go
@@ -102,10 +102,6 @@ func TestPrepareDirectoryMode(t *testing.T) {
Task: TaskContextForEnv{
IssueTitle: "Fix the bug",
IssueDescription: "There is a bug in the login flow.",
- AcceptanceCriteria: []string{
- "Login works",
- "Tests pass",
- },
AgentSkills: []SkillContextForEnv{
{Name: "Code Review", Content: "Be concise."},
},
@@ -136,7 +132,7 @@ func TestPrepareDirectoryMode(t *testing.T) {
if err != nil {
t.Fatalf("failed to read issue_context.md: %v", err)
}
- for _, want := range []string{"Fix the bug", "login flow", "Login works", "Tests pass", "Code Review"} {
+ for _, want := range []string{"Fix the bug", "login flow", "Code Review"} {
if !strings.Contains(string(content), want) {
t.Fatalf("issue_context.md missing %q", want)
}