summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-06-18 02:09:03 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-06-18 02:09:44 +0900
commitb504c6eb39d1327235a5897bb446284ce393b8fe (patch)
tree8ceff73114b92eb79988749a6976df64aef771d3
parentd261c36cde9ef933d008e4cd7005497ad18f2158 (diff)
Avoid intermittent test failures
by making sure that we're back on shell command-line
-rw-r--r--test/test_go.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 1108afe3..7376384d 100644
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -156,6 +156,7 @@ class TestBase < Minitest::Test
File.read(tempname)
ensure
File.unlink tempname while File.exists?(tempname)
+ tmux.prepare
end
def fzf(*opts)
@@ -672,7 +673,7 @@ module TestShell
def test_alt_c
tmux.prepare
tmux.send_keys :Escape, :c, pane: 0
- lines = tmux.until(1) { |lines| lines.item_count > 0 }
+ lines = tmux.until(1) { |lines| lines.item_count > 0 && lines[-3][2..-1] }
expected = lines[-3][2..-1]
tmux.send_keys :Enter, pane: 1
tmux.prepare