forked from goodboy/tractor
Handle repeat child tty-acquires race
parent
6006adc0de
commit
f173012fea
|
@ -497,7 +497,12 @@ def test_root_nursery_cancels_before_child_releases_tty_lock(
|
||||||
|
|
||||||
child.sendline('c')
|
child.sendline('c')
|
||||||
|
|
||||||
child.expect(pexpect.EOF)
|
while True:
|
||||||
|
try:
|
||||||
|
child.expect(pexpect.EOF)
|
||||||
|
break
|
||||||
|
except pexpect.exceptions.TIMEOUT:
|
||||||
|
print('child was ablel to grab tty lock again?')
|
||||||
|
|
||||||
if not timed_out_early:
|
if not timed_out_early:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue