mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
[Tests] Add more slack to the bind tests
Some of these were failing on Travis quite often, and this is probably the result of too tight a window. E.g. one emacs test (transpose words, default timeout, short delay) waited 250ms to enter something else, with a timeout of 300ms. That meant a window of 50ms.
This commit is contained in:
parent
069e4fdd8d
commit
56604f598e
1 changed files with 6 additions and 6 deletions
|
@ -21,7 +21,7 @@ expect_prompt -re {\r\ndef abc\r\n} {
|
||||||
# the words.
|
# the words.
|
||||||
send "echo ghi jkl"
|
send "echo ghi jkl"
|
||||||
send "\033"
|
send "\033"
|
||||||
sleep 0.250
|
sleep 0.050
|
||||||
send "t\r"
|
send "t\r"
|
||||||
expect_prompt -re {\r\njkl ghi\r\n} {
|
expect_prompt -re {\r\njkl ghi\r\n} {
|
||||||
puts "emacs transpose words, default timeout: short delay"
|
puts "emacs transpose words, default timeout: short delay"
|
||||||
|
@ -104,7 +104,7 @@ expect_prompt -re {\r\nTAXT\r\n} {
|
||||||
send "echo MORE-TEXT"
|
send "echo MORE-TEXT"
|
||||||
send "\033"
|
send "\033"
|
||||||
# Delay needed to allow fish to transition to vi "normal" mode.
|
# Delay needed to allow fish to transition to vi "normal" mode.
|
||||||
sleep 0.150
|
sleep 0.250
|
||||||
send "xxxxx\r"
|
send "xxxxx\r"
|
||||||
expect_prompt -re {\r\nMORE\r\n} {
|
expect_prompt -re {\r\nMORE\r\n} {
|
||||||
puts "vi mode delete char, default timeout: long delay"
|
puts "vi mode delete char, default timeout: long delay"
|
||||||
|
@ -118,7 +118,7 @@ expect_prompt
|
||||||
|
|
||||||
send "echo fail: lengthened escape timeout"
|
send "echo fail: lengthened escape timeout"
|
||||||
send "\033"
|
send "\033"
|
||||||
sleep 0.250
|
sleep 0.350
|
||||||
send "ddi"
|
send "ddi"
|
||||||
send "echo success: lengthened escape timeout\r"
|
send "echo success: lengthened escape timeout\r"
|
||||||
expect_prompt -re {\r\nsuccess: lengthened escape timeout\r\n} {
|
expect_prompt -re {\r\nsuccess: lengthened escape timeout\r\n} {
|
||||||
|
@ -131,7 +131,7 @@ expect_prompt -re {\r\nsuccess: lengthened escape timeout\r\n} {
|
||||||
# after sending escape.
|
# after sending escape.
|
||||||
send "echo fail: no normal mode"
|
send "echo fail: no normal mode"
|
||||||
send "\033"
|
send "\033"
|
||||||
sleep 0.100
|
sleep 0.050
|
||||||
send "ddi"
|
send "ddi"
|
||||||
send "inserted\r"
|
send "inserted\r"
|
||||||
expect_prompt -re {\r\nfail: no normal modediinserted\r\n} {
|
expect_prompt -re {\r\nfail: no normal modediinserted\r\n} {
|
||||||
|
@ -143,9 +143,9 @@ expect_prompt -re {\r\nfail: no normal modediinserted\r\n} {
|
||||||
# Test 't' binding that contains non-zero arity function (forward-jump) followed
|
# Test 't' binding that contains non-zero arity function (forward-jump) followed
|
||||||
# by another function (and) https://github.com/fish-shell/fish-shell/issues/2357
|
# by another function (and) https://github.com/fish-shell/fish-shell/issues/2357
|
||||||
send "\033"
|
send "\033"
|
||||||
sleep 0.250
|
sleep 0.300
|
||||||
send "ddiecho TEXT\033"
|
send "ddiecho TEXT\033"
|
||||||
sleep 0.250
|
sleep 0.300
|
||||||
send "hhtTrN\r"
|
send "hhtTrN\r"
|
||||||
expect_prompt -re {\r\nTENT\r\n} {
|
expect_prompt -re {\r\nTENT\r\n} {
|
||||||
puts "t-binding success"
|
puts "t-binding success"
|
||||||
|
|
Loading…
Reference in a new issue