Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

test(cli): wait for shared-machine service before sharing (#1621)

0xken15b1a87b7336f5
diff --git a/cli/e2e/sharedMachines.e2e.ts b/cli/e2e/sharedMachines.e2e.ts
index f37bf5771..63168189e 100644
--- a/cli/e2e/sharedMachines.e2e.ts
+++ b/cli/e2e/sharedMachines.e2e.ts
@@ -73,6 +73,7 @@ describe('a machine shared across accounts', () => {
})
await Promise.all(daemons.map((daemon) => daemon.start()))
await until('both machines on the relay', () => backend!.nodeUp(deeSpec.machineId) && backend!.nodeUp(kimSpec.machineId), 30_000)
+ await until('both shared-machine services ready', () => daemons.every(daemon => daemon.log().includes('[service sharedMachines] connected to the core')), 30_000)
// Not shared: Kim's computer has no way to Dee's machine.
expect(await select(kim, deeSpec.machineId)).toBe(4404)