fix(issue-31): a claude purge removes every path the session owns, reports what is left, and waits for the process; the stop docs say a purge removes the row #59
@@ -312,7 +312,9 @@ def test_any_spelling_of_the_uuid_is_the_lowercase_session(home, tmp_path, conv,
|
|||||||
|
|
||||||
live.kill()
|
live.kill()
|
||||||
live.wait()
|
live.wait()
|
||||||
named = subprocess.Popen(["sh", "-c", "sleep 120", conv])
|
# Not `sh -c "sleep 120" <uuid>`: a shell execs its last simple command
|
||||||
|
# and the uuid would vanish from the process list (macOS /bin/sh).
|
||||||
|
named = subprocess.Popen([sys.executable, "-c", "import time; time.sleep(120)", conv])
|
||||||
try:
|
try:
|
||||||
time.sleep(0.05)
|
time.sleep(0.05)
|
||||||
assert adapter.conversation_in_use(other, ctx) is True, "a command line naming the lowercase id"
|
assert adapter.conversation_in_use(other, ctx) is True, "a command line naming the lowercase id"
|
||||||
|
|||||||
Reference in new issue
Block a user