summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-24 03:50:39 (GMT)
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-24 03:50:39 (GMT)
commit72c62dc0865ef572f8502bcb1c8b6309869a162e (patch)
tree4bc59829b9bb0db6f2157c095fb1c225653e7f66
parent3bfd7f02c7cab690c21a6ca7b8942f4a5116dc6b (diff)
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
-rw-r--r--test/win32ole/test_win32ole_event.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/win32ole/test_win32ole_event.rb b/test/win32ole/test_win32ole_event.rb
index b9902a0..79fe9dd 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