summaryrefslogtreecommitdiff
path: root/test/rinda
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-10-17 15:32:40 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-10-17 15:32:40 +0900
commit09dd9d8e5da29f8dfa1c78553950f9469d7291e6 (patch)
tree1f00a79bcc14c089301569e607564e1aad5e1a56 /test/rinda
parent6a9e09824b5abc61f3fdba9067303fc5e585b782 (diff)
Revert "test/rinda/test_rinda.rb: try debugging TestRingServer#test_do_reply"
This reverts commit de5e8d0e3bc3cc39487ffc9d9c15642b6881cd54. Remove the debugging code that is no longer needed
Diffstat (limited to 'test/rinda')
-rw-r--r--test/rinda/test_rinda.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb
index 6a022e6269..cd594b38bb 100644
--- a/test/rinda/test_rinda.rb
+++ b/test/rinda/test_rinda.rb
@@ -620,7 +620,6 @@ end
class TestRingServer < Test::Unit::TestCase
def setup
- @aoe_back = Thread.abort_on_exception
@port = Rinda::Ring_PORT
@ts = Rinda::TupleSpace.new
@@ -628,7 +627,6 @@ class TestRingServer < Test::Unit::TestCase
@server = DRb.start_service("druby://localhost:0")
end
def teardown
- Thread.abort_on_exception = @aoe_back
@rs.shutdown
# implementation-dependent
@ts.instance_eval{
@@ -802,12 +800,7 @@ class TestRingServer < Test::Unit::TestCase
tl = nil
th = Thread.new(Thread.current) do |mth|
sleep n
- puts "...timeout! Show the backtraces of all living threads"
- (tl = Thread.list - tl0).each_with_index do |t, i|
- puts "Thread #{ i }: #{ t.inspect }", *t.backtrace, ""
- t.raise(Timeout::Error)
- end
- puts "and then raise Timeout::Error to the main thread"
+ (tl = Thread.list - tl0).each {|t|t.raise(Timeout::Error)}
mth.raise(Timeout::Error)
end
tl0 << th