1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
k0kubun 2018-12-24 03:50:39 +00:00
parent 3bfd7f02c7
commit 72c62dc086

View file

@ -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