Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: await section-local sidecar enrichment before asserting (#9452)

[._.]/ Adam Eivyd393053aeadd
diff --git a/server/services/universeBuilderCollectionHook.test.js b/server/services/universeBuilderCollectionHook.test.js
index 9a343688fe..ce6752757b 100644
--- a/server/services/universeBuilderCollectionHook.test.js
+++ b/server/services/universeBuilderCollectionHook.test.js
@@ -473,7 +473,9 @@ describe('universeBuilderCollectionHook', () => {
await waitFor(async () => {
const u = await universeBuilder.getUniverse(seeded.id);
- return u?.characters?.[0]?.imageRefs?.includes(filename);
+ // Entry persistence and sidecar enrichment run independently in parallel.
+ return u?.characters?.[0]?.imageRefs?.includes(filename)
+ && indexedSidecars.some(row => row.entryId === characterId && row.id === 'section-local');
});
const u = await universeBuilder.getUniverse(seeded.id);
expect(u.characters[0].imageRefs).toEqual([filename]);