m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

Fix flaky test case

This commit is contained in:
Junegunn Choi
2019-11-02 14:55:13 +09:00
parent 6390140539
commit 11645e1fac

View File

@@ -256,12 +256,12 @@ class TestGoFZF < TestBase
# Testing basic key bindings # 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.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' } tmux.until do |lines|
lines = tmux.capture '> 3910' == lines[-4] &&
assert_equal '> 3910', lines[-4] ' 391' == lines[-3] &&
assert_equal ' 391', lines[-3] ' 856/100000' == lines[-2] &&
assert_equal ' 856/100000', lines[-2] '> 391' == lines[-1]
assert_equal '> 391', lines[-1] end
tmux.send_keys :Enter tmux.send_keys :Enter
assert_equal '3910', readonce.chomp assert_equal '3910', readonce.chomp