test(studio): the undo socket test holds round 0 to a full restore too

This commit is contained in:
Miguel Angel Simon Sierra
2026-10-02 03:39:04 -07:00
parent 3cc60107e1
commit 1f8f97047c
@@ -165,8 +165,7 @@ try {
const reverted = await until(() => readIndex() === before, 5_000);
const stallMs = undo?.timing ? Math.round(undo.timing.sendStart) : null;
rounds.push({ round, pinned, stallMs, reverted });
// Round 0 is exempt until the fix for the first undo of a GSAP-free film, which takes back only part, lands.
if (!reverted && round > 0) failures.push(`round ${round}: the undo did not restore the file`);
if (!reverted) failures.push(`round ${round}: the undo did not restore the file`);
if (stallMs == null)
failures.push(`round ${round}: the undo's POST history/step never answered`);
else if (stallMs > STALL_LIMIT_MS)