mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Revert "test/rinda/test_rinda.rb: try debugging TestRingServer#test_do_reply"
This reverts commit de5e8d0e3b
.
Remove the debugging code that is no longer needed
This commit is contained in:
parent
6a9e09824b
commit
09dd9d8e5d
1 changed files with 1 additions and 8 deletions
|
@ -620,7 +620,6 @@ end
|
||||||
class TestRingServer < Test::Unit::TestCase
|
class TestRingServer < Test::Unit::TestCase
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@aoe_back = Thread.abort_on_exception
|
|
||||||
@port = Rinda::Ring_PORT
|
@port = Rinda::Ring_PORT
|
||||||
|
|
||||||
@ts = Rinda::TupleSpace.new
|
@ts = Rinda::TupleSpace.new
|
||||||
|
@ -628,7 +627,6 @@ class TestRingServer < Test::Unit::TestCase
|
||||||
@server = DRb.start_service("druby://localhost:0")
|
@server = DRb.start_service("druby://localhost:0")
|
||||||
end
|
end
|
||||||
def teardown
|
def teardown
|
||||||
Thread.abort_on_exception = @aoe_back
|
|
||||||
@rs.shutdown
|
@rs.shutdown
|
||||||
# implementation-dependent
|
# implementation-dependent
|
||||||
@ts.instance_eval{
|
@ts.instance_eval{
|
||||||
|
@ -802,12 +800,7 @@ class TestRingServer < Test::Unit::TestCase
|
||||||
tl = nil
|
tl = nil
|
||||||
th = Thread.new(Thread.current) do |mth|
|
th = Thread.new(Thread.current) do |mth|
|
||||||
sleep n
|
sleep n
|
||||||
puts "...timeout! Show the backtraces of all living threads"
|
(tl = Thread.list - tl0).each {|t|t.raise(Timeout::Error)}
|
||||||
(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"
|
|
||||||
mth.raise(Timeout::Error)
|
mth.raise(Timeout::Error)
|
||||||
end
|
end
|
||||||
tl0 << th
|
tl0 << th
|
||||||
|
|
Loading…
Reference in a new issue