From 4c5aa8860acbe69718c16ca11adc629e12822d51 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Thu, 4 Feb 2016 16:32:25 -0800 Subject: 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. --- tests/bind.expect | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3