summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 16:50:58 -0300
committerGabriel Schneider <[email protected]>2026-10-30 17:40:51 -0300
commitd92ea9dfdd9198b69bff420c3b594f0ffed1e1bb (patch)
treef9102920bad857c51aa7103ec4ae8b621d706213 /test
parent5938a84d98815818598f5505646edec762089270 (diff)
downloadpardes-d92ea9dfdd9198b69bff420c3b594f0ffed1e1bb.tar.gz
pardes-d92ea9dfdd9198b69bff420c3b594f0ffed1e1bb.zip
Messages: a detached session's messages go on the clock in the pump, after its wait, not in the host's wait: the host's call (tty waitInput, gui waitDetached) was no input, its clock read untaped, so a replay (and every replica of a session nobody attached) kept a message its session had let go; with MessageLinger 0 (test/daemon.py's sessions) a tape whose session said a failure never replayed, on main too (pane 0's msg, digest 6, 7 of 7 runs; 0 of 6 after); test/cross_replay.py's session says MessageLinger 0 again
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test')
-rw-r--r--test/cross_replay.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/cross_replay.py b/test/cross_replay.py
index 2a4a7ae7..26304d9a 100644
--- a/test/cross_replay.py
+++ b/test/cross_replay.py
@@ -47,10 +47,9 @@ def record(binary, out):
(root / 'dir').mkdir()
(root / 'dir' / 'b.txt').write_text('in a directory\n')
os.mkfifo(root / 'fifo')
- # No `MessageLinger 0` (test/daemon.py's sessions have it): with it, now
- # and then, a tape does not replay even by its own build, on main too
- # (pane 0's message differs a step after a failure is said).
- (root / 'config' / 'pardes' / 'init').write_text('')
+ # As test/daemon.py's sessions are: a detached session's message goes at
+ # once, on the clock (Messages.expireUnattended).
+ (root / 'config' / 'pardes' / 'init').write_text('MessageLinger 0\n')
stem = Path(binary).name
env['PARDES_RECORD'] = str(out / f'{stem}-')
window = 'gui' in stem