Add longer delays around ctl-c loop, don't expect longlist
parent
56b30a9a53
commit
70ad0f6b8e
|
@ -149,15 +149,17 @@ def test_root_actor_bp(spawn, user_in_out):
|
||||||
def do_ctlc(
|
def do_ctlc(
|
||||||
child,
|
child,
|
||||||
count: int = 3,
|
count: int = 3,
|
||||||
|
delay: float = 0.1,
|
||||||
patt: Optional[str] = None,
|
patt: Optional[str] = None,
|
||||||
|
|
||||||
) -> None:
|
) -> None:
|
||||||
|
|
||||||
# make sure ctl-c sends don't do anything but repeat output
|
# make sure ctl-c sends don't do anything but repeat output
|
||||||
for _ in range(count):
|
for _ in range(count):
|
||||||
time.sleep(0.001)
|
time.sleep(delay)
|
||||||
child.sendcontrol('c')
|
child.sendcontrol('c')
|
||||||
child.expect(r"\(Pdb\+\+\)")
|
child.expect(r"\(Pdb\+\+\)")
|
||||||
|
time.sleep(delay)
|
||||||
|
|
||||||
if patt:
|
if patt:
|
||||||
# should see the last line on console
|
# should see the last line on console
|
||||||
|
@ -225,7 +227,6 @@ def test_subactor_error(
|
||||||
if ctlc:
|
if ctlc:
|
||||||
do_ctlc(
|
do_ctlc(
|
||||||
child,
|
child,
|
||||||
patt='(doggypants)',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# send user command and (in this case it's the same for 'continue'
|
# send user command and (in this case it's the same for 'continue'
|
||||||
|
|
Loading…
Reference in New Issue