diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-10-17 15:32:19 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-10-17 15:32:19 +0900 |
commit | 6a9e09824b5abc61f3fdba9067303fc5e585b782 (patch) | |
tree | 6c24e107b37e481f1d3599ff4eb0440887603dd2 /test | |
parent | 5c003b4bcd70b03012f6d2e322bd175efd226528 (diff) | |
download | ruby-6a9e09824b5abc61f3fdba9067303fc5e585b782.tar.gz |
Revert "test/rinda/test_rinda.rb: Add more debugging code"
This reverts commit ac803ab55db50ef891e3680680620d01f28a759b.
Remove debugging code that is no longer needed
Diffstat (limited to 'test')
-rw-r--r-- | test/rinda/test_rinda.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb index e247635104..6a022e6269 100644 --- a/test/rinda/test_rinda.rb +++ b/test/rinda/test_rinda.rb @@ -642,32 +642,7 @@ class TestRingServer < Test::Unit::TestCase end def test_do_reply - # temporaliry redefine Rinda::RingServer#do_reply for a debugging purpose - Rinda::RingServer.class_eval do - alias do_reply_back do_reply - def do_reply - tuple = @ts.take([:lookup_ring, nil], @renewer) - Thread.new do - begin - tuple[1].call(@ts) - rescue - p :in_thread, $!, *$!.backtrace - nil - end - end - rescue - p :out_of_thread, $!, *$!.backtrace - end - end - with_timeout(30) {_test_do_reply} - - ensure - Rinda::RingServer.class_eval do - remove_method :do_reply - alias do_reply do_reply_back - remove_method :do_reply_back - end end def _test_do_reply |