Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
test(config): chmod a tick after the settled write, so its ctime moves
milind-soni74295ad664c9
diff --git a/server/config.test.ts b/server/config.test.tsindex 43be522dd4..ae3436bca9 100644--- a/server/config.test.ts+++ b/server/config.test.ts@@ -2202,6 +2202,8 @@ describe("a value derived from config.json", () => {const derive = vi.fn(members);const read = cacheUntilConfigChanges(derive);read();+ // Linux stamps ctime from a clock that ticks every 1 to 10 ms, so a chmod in the write's own tick keeps its ctime.+ Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 20);// chmod and chown leave the size, the time and the file the same.chmodSync(path, 0o600);read();