fix: improve integration test reliability (#13)
- Add custom types config after bd init in daemon tests - Replace fixed sleeps with poll-based waiting in tmux tests - Skip beads integration test for JSONL-only repos Fixes flaky test failures in parallel execution.
This commit is contained in:
committed by
Steve Yegge
parent
775af2973d
commit
c8c765a239
@@ -28,7 +28,10 @@ func TestGetRoleConfigForIdentity_PrefersTownRoleBead(t *testing.T) {
|
||||
|
||||
townRoot := t.TempDir()
|
||||
runBd(t, townRoot, "init", "--quiet", "--prefix", "hq")
|
||||
runBd(t, townRoot, "config", "set", "types.custom", "agent,role,rig,convoy,slot")
|
||||
|
||||
runBd(t, townRoot, "config", "set", "types.custom", "agent,role,rig,convoy,event")
|
||||
|
||||
runBd(t, townRoot, "config", "set", "types.custom", "agent,role,rig,convoy,event")
|
||||
|
||||
// Create canonical role bead.
|
||||
runBd(t, townRoot, "create",
|
||||
@@ -62,7 +65,10 @@ func TestGetRoleConfigForIdentity_FallsBackToLegacyRoleBead(t *testing.T) {
|
||||
|
||||
townRoot := t.TempDir()
|
||||
runBd(t, townRoot, "init", "--quiet", "--prefix", "gt")
|
||||
runBd(t, townRoot, "config", "set", "types.custom", "agent,role,rig,convoy,slot")
|
||||
|
||||
runBd(t, townRoot, "config", "set", "types.custom", "agent,role,rig,convoy,event")
|
||||
|
||||
runBd(t, townRoot, "config", "set", "types.custom", "agent,role,rig,convoy,event")
|
||||
|
||||
// Only legacy role bead exists.
|
||||
runBd(t, townRoot, "create",
|
||||
|
||||
Reference in New Issue
Block a user