diff --git a/test/lib/common.rb b/test/lib/common.rb index d93c7685..0ddd3486 100644 --- a/test/lib/common.rb +++ b/test/lib/common.rb @@ -24,7 +24,7 @@ DEFAULT_TIMEOUT = 10 FILE = File.expand_path(__FILE__) BASE = File.expand_path('../..', __dir__) Dir.chdir(BASE) -FZF = %[FZF_DEFAULT_OPTS="--no-scrollbar --gutter ' ' --pointer '>' --marker '>'" FZF_DEFAULT_COMMAND= #{BASE}/bin/fzf].freeze +FZF = %(FZF_DEFAULT_OPTS="--no-scrollbar --gutter ' ' --pointer '>' --marker '>'" FZF_DEFAULT_COMMAND= #{BASE}/bin/fzf).freeze def wait(timeout = DEFAULT_TIMEOUT) since = Time.now diff --git a/test/test_core.rb b/test/test_core.rb index c9f55803..1e1ff812 100644 --- a/test/test_core.rb +++ b/test/test_core.rb @@ -2004,7 +2004,7 @@ class TestCore < TestInteractive end end elapsed = Time.now - time - assert elapsed < 2 + assert_operator elapsed, :<, 2 end def test_bg_cancel @@ -2017,7 +2017,7 @@ class TestCore < TestInteractive tmux.until { assert_equal 2, it.match_count } tmux.send_keys :Space tmux.until { |lines| assert lines.any_include?('[0]') } - sleep 2 + sleep(2) tmux.until do |lines| assert lines.any_include?('[0]') refute lines.any_include?('[1]')