mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
tests/bind: Increase escape delay
We just had the following output on Github Actions: INPUT +0.94 ms (Line 34): echo ghi jkl INPUT +0.72 ms (Line 35): \x1b INPUT +63.12 ms (Line 37): t\r The default escape delay is 30ms, that had 60ms between an escape and a tab, so it missed it. So: We have to increase the delay for CI's benefit. Let's try with 80ms, because otherwise we'd have to bump up other timeouts and the bind tests take long enough as it is.
This commit is contained in:
parent
640f4444f5
commit
f58f2e14a3
1 changed files with 6 additions and 1 deletions
|
@ -20,6 +20,11 @@ expect_prompt(increment=False)
|
|||
|
||||
# Fish should start in default-mode (i.e., emacs) bindings. The default escape
|
||||
# timeout is 30ms.
|
||||
#
|
||||
# Because common CI systems are awful, we have to increase this:
|
||||
|
||||
sendline("set -g fish_escape_delay_ms 80")
|
||||
expect_prompt("")
|
||||
|
||||
# Verify the emacs transpose word (\et) behavior using various delays,
|
||||
# including none, after the escape character.
|
||||
|
@ -42,7 +47,7 @@ expect_prompt("\r\njkl ghi\r\n")
|
|||
# occur and the "t" should become part of the text that is echoed.
|
||||
send("echo mno pqr")
|
||||
send("\033")
|
||||
sleep(0.200)
|
||||
sleep(0.100)
|
||||
send("t\r")
|
||||
# emacs transpose words, default timeout: long delay
|
||||
expect_prompt("\r\nmno pqrt\r\n")
|
||||
|
|
Loading…
Reference in a new issue