From 72c62dc0865ef572f8502bcb1c8b6309869a162e Mon Sep 17 00:00:00 2001 From: k0kubun Date: Mon, 24 Dec 2018 03:50:39 +0000 Subject: [PATCH] test_win32ole_event.rb: use better retry strategy because https://ci.appveyor.com/project/ruby/ruby/builds/21208728/job/lm5k0lxnn51pcljl seems to fail with just sleeping git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/win32ole/test_win32ole_event.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/win32ole/test_win32ole_event.rb b/test/win32ole/test_win32ole_event.rb index b9902a0b8b..79fe9ddc72 100644 --- a/test/win32ole/test_win32ole_event.rb +++ b/test/win32ole/test_win32ole_event.rb @@ -137,9 +137,8 @@ if defined?(WIN32OLE_EVENT) ev.on_event(:OnObjectReady) {|*args| handler1 } - message_loop - # @event1 randomly becomes "" here: https://ci.appveyor.com/project/ruby/ruby/builds/20975541/job/b380m0q9ed0rdv7v - assert_match_with_retries(/\Ahandler1\z/, :@event1) + message_loop(:@event1) + assert_equal("handler1", @event1) end private