diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-23 09:37:41 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-23 10:04:29 -0300 |
| commit | 7dbcaa13cc3bebd5470ce1ac3f5e112357564063 (patch) | |
| tree | 73990b79ac69561515baecde469dc503fb090e90 /test/daemon.py | |
| parent | 339ebde8df16f79197c2fd469eedba5edec750c4 (diff) | |
| download | pardes-7dbcaa13cc3bebd5470ce1ac3f5e112357564063.tar.gz pardes-7dbcaa13cc3bebd5470ce1ac3f5e112357564063.zip | |
upgrade: the test that an Upgrade's outcome is said in every view: runtime/upgrade.zig:449 (`load`'s end) set "Upgrade: now ..." or "... it goes on as ..." at `p.view().active`, the live view at the dump, the one whose input came last before the Upgrade's step, not the one that asked (the pair round's `--with-pair --upgrade` ReleaseSafe to Debug 1 of 3: the message on pane 5, a pane of client f's view, which the session's /screen does not show); the unit test (two views, the second's keyboard on a New pane of its own and its input last, dumped and loaded as an upgrade loads it: each view's pane at its keyboard must say "Upgrade: now pardes ") fails at upgrade.zig:493 (logs/t7-upgrade-unfixed.log); and test/daemon.py's refused-upgrade row (two replica clients, the Upgrade written over 9P to the shell's pane) now waits for each client's own screen to say "Upgrade: the new build"
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/daemon.py')
| -rw-r--r-- | test/daemon.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/daemon.py b/test/daemon.py index dc1abcbc..b240b887 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -3561,6 +3561,9 @@ def upgrades(old, new): raise TimeoutError(f'the client joined again: not {[c.stem for _, c in owners if c not in joined]} ' f'{time.monotonic() - t0:.1f} s after the Upgrade, the session back at {back:.1f} s') from None assert again.poll() is None and again5.poll() is None + # The session's news: each client's own screen says it, not only + # the view whose input came last before the Upgrade's step. + wait_for("each client's own screen saying the Upgrade's outcome", lambda: all(b'Upgrade: the new build' in t.text() for t, _ in owners), timeout=15) for (t, check), pane, theirs in zip(owners, mine, reversed(mine)): in_own_view('its own view again', lambda: made_live(t, check), client, pane, theirs) for c, t in ((again, term4), (again5, term5)): |
