Stabilize bd role config tests

This commit is contained in:
joshuavial
2026-01-08 22:43:24 +13:00
parent 85dd150d75
commit c699e3e2ed
2 changed files with 24 additions and 18 deletions

View File

@@ -28,6 +28,7 @@ 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")
// Create canonical role bead.
runBd(t, townRoot, "create",
@@ -61,6 +62,7 @@ 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")
// Only legacy role bead exists.
runBd(t, townRoot, "create",