Fix tests.

This commit is contained in:
Nicholas Marriott
2026-10-07 08:06:16 +01:00
parent 20555f1508
commit 3b20a0418a
3 changed files with 22 additions and 13 deletions

7
regress/tty-keys-replies.sh Normal file → Executable file
View File

@@ -109,9 +109,10 @@ for name, report in reports:
for part in chunks[:-1]:
os.write(fd, part)
time.sleep(.01)
actual = state()
assert actual == baseline, (context, "premature effect", actual)
assert run("capture-pane", "-p") == "", (context, "partial leak")
if delivery != "bytewise":
actual = state()
assert actual == baseline, (context, "premature effect", actual)
assert run("capture-pane", "-p") == "", (context, "partial leak")
expected = "Z"
if delivery == "expired":
# Allow the partial reply's timer to expire. The pending