1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix Leaked thread

Sometimes `Leaked thread: Rinda::TestRingServer#test_ring_server_ipv6_multicast` happens
because `Rinda::TupleSpace#start_keeper` runs after stopping `@keeper`.
This commit is contained in:
Kazuhiro NISHIYAMA 2019-07-31 17:45:43 +09:00
parent 40651cf1f5
commit 14eede6e53
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -623,6 +623,7 @@ class TestRingServer < Test::Unit::TestCase
@server = DRb.start_service("druby://localhost:0")
end
def teardown
@rs.shutdown
# implementation-dependent
@ts.instance_eval{
if th = @keeper
@ -630,7 +631,6 @@ class TestRingServer < Test::Unit::TestCase
th.join
end
}
@rs.shutdown
@server.stop_service
end