diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2016-02-04 16:32:25 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2016-02-04 16:33:02 -0800 |
commit | 4c5aa8860acbe69718c16ca11adc629e12822d51 (patch) | |
tree | 1991419f5c82113da473c1c0a877bc9c12e5a8bf /tests | |
parent | adc3b0e122cc1fc09d60a810ef00c8abb898982f (diff) |
Update bind.expect for travis-CI
Travis-CI runs with clang ASAN enabled, which makes fish slow enough
that certain timing tests fail. Sleep a little so that fish can
catch up.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bind.expect | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/bind.expect b/tests/bind.expect index 5ad4fc9c..26ca2479 100644 --- a/tests/bind.expect +++ b/tests/bind.expect @@ -49,9 +49,8 @@ expect_prompt # These vi tests assume the fish_vi_key_bindings default escape timeout of # 10ms is in effect; not the 300ms timeout for the default-mode. # -# This test is only present to make the Travis-CI framework succeed -# consistently. It's not clear why the subsequent tests succeed without this -# test when executed on a local machine but not in the Travis-CI framework. + +# Go through a prompt cycle to let fish catch up, it may be slow due to ASAN send "echo success: default escape timeout\r" expect_prompt -re {\r\nsuccess: default escape timeout\r\n} { puts "prime vi mode, default timeout" @@ -60,6 +59,8 @@ expect_prompt -re {\r\nsuccess: default escape timeout\r\n} { } send "echo fail: default escape timeout" +# Sleep to let fish catch up, it may be slow due to ASAN +sleep 0.02 send "\033" # Delay needed to allow fish to transition to vi "normal" mode. sleep 0.020 |