{"draft":null,"from":162,"to":163,"files":[{"path":"server/test/project-object-disk-first.test.ts","added":14,"removed":0,"diff":"--- a/server/test/project-object-disk-first.test.ts\n+++ b/server/test/project-object-disk-first.test.ts\n@@ -285,8 +285,13 @@\n \t\tthrow Error(\"empty test repository\");\n \t});\n \tlet pushed = 0;\n+\tlet failPush = true;\n \tlet remoteFiles: MemoryFS | undefined;\n \tt.mock.method(git, \"push\", async (options: Parameters<typeof git.push>[0]) => {\n+\t\tif (failPush) {\n+\t\t\tfailPush = false;\n+\t\t\tthrow Error(\"injected Artifacts transport failure\");\n+\t\t}\n \t\tconst oid = await git.resolveRef({ fs: options.fs, dir: options.dir, ref: \"main\" });\n \t\tconst commit = await git.readCommit({ fs: options.fs, dir: options.dir, oid });\n \t\tassert.match(commit.commit.message, /abso-version: 2/);\n@@ -304,8 +309,17 @@\n \t\t}),\n \t};\n \tconst bound = () => new ProjectObject(context as never, { ABSO_DISK_FIRST: \"on\", ARTIFACTS: artifacts } as never);\n+\t// Deliver the pending alarm: the fake storage must clear it as the host does.\n+\talarm = null;\n \tawait bound().alarm();\n+\tassert.equal(pushed, 0);\n+\tassert.equal(values.get(\"pushed\"), undefined, \"failed transport must not acknowledge a push\");\n+\tassert.match(JSON.stringify(values.get(\"pushError\")), /injected Artifacts transport failure/);\n+\tassert.deepEqual(rows(), stable, \"failed remote transport leaves canonical state unchanged\");\n+\tassert.ok(alarm !== null && alarm > Date.now(), \"failed transport schedules a retry\");\n+\tawait bound().alarm();\n \tassert.equal(pushed, 1);\n+\tassert.equal(values.get(\"pushError\"), undefined, \"cold retry clears the transport error\");\n \tassert.equal((await bound().out()).pushed?.version, 2);\n \tassert.deepEqual(rows(), stable, \"pushing shared does not mutate canonical project state\");\n \tawait bound().alarm();"}],"unmatched":[]}