From 8f43080f4b47931e31b0b61dcdd41873382b57e7 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sat, 20 Oct 2018 01:10:09 +0000 Subject: test_win32ole_event.rb: fire message_loop on retry because it's failing even after sleeping 31s in total. https://ci.appveyor.com/project/ruby/ruby/builds/19642619/job/pkaj5svr8glk8twt https://ci.appveyor.com/project/ruby/ruby/builds/19641381/job/spdvrptpaq1d5778 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/win32ole/test_win32ole_event.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/win32ole/test_win32ole_event.rb b/test/win32ole/test_win32ole_event.rb index a45c12d9c4..e23097e2e1 100644 --- a/test/win32ole/test_win32ole_event.rb +++ b/test/win32ole/test_win32ole_event.rb @@ -78,7 +78,8 @@ if defined?(WIN32OLE_EVENT) tries = 0 while tries < 5 && instance_variable_get(watch_ivar) == orig_ivar seconds = 2 ** tries # sleep at most 31s in total - $stderr.puts "test_win32ole_event.rb: sleeping #{seconds}s until #{watch_ivar} is changed from #{orig_ivar.inspect}..." + $stderr.puts "test_win32ole_event.rb: retrying and sleeping #{seconds}s until #{watch_ivar} is changed from #{orig_ivar.inspect}..." + WIN32OLE_EVENT.message_loop sleep(seconds) tries += 1 end -- cgit v1.2.3