diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/daemon.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/daemon.py b/test/daemon.py index fcaae3d7..dc1abcbc 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -3584,7 +3584,7 @@ def upgrades(old, new): # upgrade of one pid is `upgrade-<pid>-2`). kept = client.read('/dumps').decode() assert any(line.split()[0].startswith(f'upgrade-{session}') for line in kept.splitlines()), kept - assert alive(shell_pid) and ppid(shell_pid) == session + assert alive(shell_pid) and ppid(shell_pid) == session, ('the shell under the fresh session', shell_pid, alive(shell_pid) and ppid(shell_pid), session) pids = {p: run(client, p, b'echo $$\n') for p in terminals(client)} adopted = [p for p, out in pids.items() if out.split(b'\n')[1:2] == [str(shell_pid).encode()]] assert adopted, ('the shell is a pane of the fresh session', shell_pid, pids, client.read('/index')) @@ -3626,7 +3626,7 @@ def upgrades(old, new): pid, said = adopted_pid(client, pane) assert pid == str(shell_pid).encode(), (said, shell_pid) print(f'upgrade: the upgraded daemon kept shell {shell_pid} through kill -9 of its session, and it was adopted') - client.write(f'/pane/{pane}/exec', b'Exit\n') + exit_session(client, pane) stub.wait(timeout=10) client.socket.close() term.close() |
