diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-07-31 17:45:43 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-07-31 17:45:43 +0900 |
commit | 14eede6e530f58bc22fb6d89ecf910eb1cfcf240 (patch) | |
tree | 1df1ef7bc30933f7df487b295d8d700155bff450 /test/rinda/test_rinda.rb | |
parent | 40651cf1f567ae728c8d2cc908017c31e1000b6e (diff) | |
download | ruby-14eede6e530f58bc22fb6d89ecf910eb1cfcf240.tar.gz |
Fix `Leaked thread`
Sometimes `Leaked thread: Rinda::TestRingServer#test_ring_server_ipv6_multicast` happens
because `Rinda::TupleSpace#start_keeper` runs after stopping `@keeper`.
Diffstat (limited to 'test/rinda/test_rinda.rb')
-rw-r--r-- | test/rinda/test_rinda.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb index 2c2c099a74..0b870a6bec 100644 --- a/test/rinda/test_rinda.rb +++ b/test/rinda/test_rinda.rb @@ -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 |