From b4711a0fa0d0a8d9a01ac4f9ac1051f192b93cf2 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Sat, 25 Jan 2020 14:14:05 +0900 Subject: [PATCH] test/rinda/test_rinda.rb: Increase the timeout Attempts to fix a occational failure on Solaris with sunc https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris11-sunc/ruby-master/log/20200124T160008Z.fail.html.gz ``` 1) Error: Rinda::TestRingServer#test_do_reply: Timeout::Error: timeout ``` --- test/rinda/test_rinda.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb index 22966532b7..615bba6623 100644 --- a/test/rinda/test_rinda.rb +++ b/test/rinda/test_rinda.rb @@ -638,7 +638,7 @@ class TestRingServer < Test::Unit::TestCase end def test_do_reply - with_timeout(10) {_test_do_reply} + with_timeout(30) {_test_do_reply} end def _test_do_reply @@ -654,14 +654,14 @@ class TestRingServer < Test::Unit::TestCase @rs.do_reply - wait_for(10) {called} + wait_for(30) {called} assert_same @ts, called end def test_do_reply_local skip 'timeout-based test becomes unstable with --jit-wait' if RubyVM::MJIT.enabled? - with_timeout(10) {_test_do_reply_local} + with_timeout(30) {_test_do_reply_local} end def _test_do_reply_local @@ -675,7 +675,7 @@ class TestRingServer < Test::Unit::TestCase @rs.do_reply - wait_for(10) {called} + wait_for(30) {called} assert_same @ts, called end