summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2019-11-02 14:55:13 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2019-11-02 14:55:13 +0900
commit11645e1fac26f67b7690d618003e89b5ffcb9680 (patch)
treec321a449ebca5ac7e110cb3b2218e1a6528421f6
parent6390140539caacfb6fd16729d3e6ba4341815b0e (diff)
Fix flaky test case
-rwxr-xr-xtest/test_go.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index ac0b1f8e..2cfbcfdd 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -256,12 +256,12 @@ class TestGoFZF < TestBase
# Testing basic key bindings
tmux.send_keys '99', 'C-a', '1', 'C-f', '3', 'C-b', 'C-h', 'C-u', 'C-e', 'C-y', 'C-k', 'Tab', 'BTab'
- tmux.until { |lines| lines[-2] == ' 856/100000' }
- lines = tmux.capture
- assert_equal '> 3910', lines[-4]
- assert_equal ' 391', lines[-3]
- assert_equal ' 856/100000', lines[-2]
- assert_equal '> 391', lines[-1]
+ tmux.until do |lines|
+ '> 3910' == lines[-4] &&
+ ' 391' == lines[-3] &&
+ ' 856/100000' == lines[-2] &&
+ '> 391' == lines[-1]
+ end
tmux.send_keys :Enter
assert_equal '3910', readonce.chomp