From 56604f598e02daefb38e9702121fc4019d3ee9ef Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 16 Jan 2018 18:11:46 +0100 Subject: [PATCH] [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. --- tests/bind.expect | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/bind.expect b/tests/bind.expect index 99229b2fe..297f99166 100644 --- a/tests/bind.expect +++ b/tests/bind.expect @@ -21,7 +21,7 @@ expect_prompt -re {\r\ndef abc\r\n} { # the words. send "echo ghi jkl" send "\033" -sleep 0.250 +sleep 0.050 send "t\r" expect_prompt -re {\r\njkl ghi\r\n} { puts "emacs transpose words, default timeout: short delay" @@ -104,7 +104,7 @@ expect_prompt -re {\r\nTAXT\r\n} { send "echo MORE-TEXT" send "\033" # Delay needed to allow fish to transition to vi "normal" mode. -sleep 0.150 +sleep 0.250 send "xxxxx\r" expect_prompt -re {\r\nMORE\r\n} { puts "vi mode delete char, default timeout: long delay" @@ -118,7 +118,7 @@ expect_prompt send "echo fail: lengthened escape timeout" send "\033" -sleep 0.250 +sleep 0.350 send "ddi" send "echo success: lengthened escape timeout\r" 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. send "echo fail: no normal mode" send "\033" -sleep 0.100 +sleep 0.050 send "ddi" send "inserted\r" 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 # by another function (and) https://github.com/fish-shell/fish-shell/issues/2357 send "\033" -sleep 0.250 +sleep 0.300 send "ddiecho TEXT\033" -sleep 0.250 +sleep 0.300 send "hhtTrN\r" expect_prompt -re {\r\nTENT\r\n} { puts "t-binding success"