From 70ad0f6b8e98670048002eac7a5430662416b56c Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 11 Jul 2022 15:09:18 -0400 Subject: [PATCH] Add longer delays around ctl-c loop, don't expect longlist --- tests/test_debugger.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_debugger.py b/tests/test_debugger.py index a373efe..63ce304 100644 --- a/tests/test_debugger.py +++ b/tests/test_debugger.py @@ -149,15 +149,17 @@ def test_root_actor_bp(spawn, user_in_out): def do_ctlc( child, count: int = 3, + delay: float = 0.1, patt: Optional[str] = None, ) -> None: # make sure ctl-c sends don't do anything but repeat output for _ in range(count): - time.sleep(0.001) + time.sleep(delay) child.sendcontrol('c') child.expect(r"\(Pdb\+\+\)") + time.sleep(delay) if patt: # should see the last line on console @@ -225,7 +227,6 @@ def test_subactor_error( if ctlc: do_ctlc( child, - patt='(doggypants)', ) # send user command and (in this case it's the same for 'continue'