diff --git a/tests/pexpects/disable_mouse.py b/tests/pexpects/disable_mouse.py index 191715b3d..bfe7fc2a3 100644 --- a/tests/pexpects/disable_mouse.py +++ b/tests/pexpects/disable_mouse.py @@ -21,6 +21,9 @@ sp.expect_str("reader: Disabling mouse tracking") sp.send("\x1b[TABCDEF") sp.expect_str("reader: Disabling mouse tracking") +# sleep to catch up under ASAN +sp.sleep(0.5) + # Extended SGR sequences. sp.send("\x1b[<1;2;3M") sp.expect_str("reader: Disabling mouse tracking") diff --git a/tests/pexpects/signals.py b/tests/pexpects/signals.py index 7c03be3f9..e8dee8c7b 100644 --- a/tests/pexpects/signals.py +++ b/tests/pexpects/signals.py @@ -47,8 +47,8 @@ expect_prompt() sendline("function postexec --on-event fish_postexec; echo fish_postexec spotted; end") expect_prompt() sendline("read") -expect_re(r"\r\n?read> (\x1b\[\?1004h)?$") sleep(0.200) +expect_re(r"\r\n?read> (\x1b\[\?1004h)?$") os.kill(sp.spawn.pid, signal.SIGINT) expect_str("fish_postexec spotted") expect_prompt() @@ -59,7 +59,7 @@ sendline( ) expect_prompt() sendline("sleep 5") -sleep(0.200) +sleep(0.300) subprocess.call(["pkill", "-INT", "-P", str(sp.spawn.pid), "sleep"]) expect_str("fish_kill_signal 2") expect_prompt()