diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2021-01-13 10:52:15 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2021-01-13 19:10:24 +0900 |
commit | e922704f72e1ca6d5c400cc0b741155b636c8e1e (patch) | |
tree | 09df0faddbfa6791b6be006031c90f0f5c5599a8 /test | |
parent | c6115735c71d4952de128f983858170d5cc15ea6 (diff) |
Migrate to GitHub Actions
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_go.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index aa28e1ce..142b2d1a 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -148,14 +148,15 @@ class Tmux def prepare tries = 0 begin - self.until do |lines| - send_keys ' ', 'C-u', :Enter, 'hello', :Left, :Right - lines[-1] == 'hello' + self.until(true) do |lines| + message = "Prepare[#{tries}]" + send_keys ' ', 'C-u', :Enter, message, :Left, :Right + lines[-1] == message end rescue Minitest::Assertion (tries += 1) < 5 ? retry : raise end - send_keys 'C-u' + send_keys 'C-u', 'C-l' end private |