[前][次][番号順一覧][スレッド一覧]

ruby-changes:63369

From: Yusuke <ko1@a...>
Date: Sat, 17 Oct 2020 15:33:26 +0900 (JST)
Subject: [ruby-changes:63369] 6a9e09824b (master): Revert "test/rinda/test_rinda.rb: Add more debugging code"

https://git.ruby-lang.org/ruby.git/commit/?id=6a9e09824b

From 6a9e09824b5abc61f3fdba9067303fc5e585b782 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Sat, 17 Oct 2020 15:32:19 +0900
Subject: Revert "test/rinda/test_rinda.rb: Add more debugging code"

This reverts commit ac803ab55db50ef891e3680680620d01f28a759b.

Remove debugging code that is no longer needed

diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb
index e247635..6a022e6 100644
--- a/test/rinda/test_rinda.rb
+++ b/test/rinda/test_rinda.rb
@@ -642,32 +642,7 @@ class TestRingServer < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L642
   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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]