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

ruby-changes:49071

From: eregon <ko1@a...>
Date: Wed, 13 Dec 2017 03:52:00 +0900 (JST)
Subject: [ruby-changes:49071] eregon:r61187 (trunk): Remove extra assert_nil in Rinda tests

eregon	2017-12-13 03:44:33 +0900 (Wed, 13 Dec 2017)

  New Revision: 61187

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61187

  Log:
    Remove extra assert_nil in Rinda tests
    
    * They are never executed since thread_join() raises.

  Modified files:
    trunk/test/rinda/test_rinda.rb
Index: test/rinda/test_rinda.rb
===================================================================
--- test/rinda/test_rinda.rb	(revision 61186)
+++ test/rinda/test_rinda.rb	(revision 61187)
@@ -359,7 +359,7 @@ module TupleSpaceTestModule https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L359
     sleep(2)
 
     assert_raise(Rinda::RequestCanceledError) do
-      assert_nil(thread_join(taker))
+      thread_join(taker)
     end
 
     assert(template.canceled?)
@@ -388,7 +388,7 @@ module TupleSpaceTestModule https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L388
     sleep(2)
 
     assert_raise(Rinda::RequestCanceledError) do
-      assert_nil(thread_join(reader))
+      thread_join(reader)
     end
 
     assert(template.canceled?)
@@ -844,4 +844,3 @@ class TestRingFinger < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L844
 end
 
 end
-

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

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