Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
test(cloud-sync): the concurrency tests use a fixed disk size
Milind Sonida828d3e08c6
diff --git a/server/cloud-sync-concurrent.test.ts b/server/cloud-sync-concurrent.test.tsindex 400b65e7e1..6ca1582cd0 100644--- a/server/cloud-sync-concurrent.test.ts+++ b/server/cloud-sync-concurrent.test.ts@@ -8,12 +8,13 @@ import * as files from "./cloud-sync-store.ts";import { createCloudSync, type CloudSync } from "./cloud-sync.ts";const PC = "3f9c2a4e-8b1d-4c6e-9a7f-2d5e8c1b0a93";+const GB = 1024 ** 3;const sha = (text: string) => createHash("sha256").update(text).digest("hex");let home: string, sync: CloudSync, folder: files.SyncFolder;beforeEach(() => {home = mkdtempSync(join(tmpdir(), "omb-sync-concurrent-"));- sync = createCloudSync({ dataDir: join(home, "data"), root: join(home, "Synced"), now: () => new Date(2026, 9, 15, 12).getTime() });+ sync = createCloudSync({ dataDir: join(home, "data"), root: join(home, "Synced"), now: () => new Date(2026, 9, 15, 12).getTime(), statfs: () => ({ totalBytes: 10 * GB, freeBytes: 9 * GB }) });folder = sync.register({ computerId: PC, computerName: "PC", pcPath: "/project", name: "Project" });});afterEach(() => {