summaryrefslogtreecommitdiffstats
path: root/test/test_go.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_go.rb')
-rwxr-xr-xtest/test_go.rb9
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