"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/drb/test_drb.rb" between
ruby-2.7.3.tar.gz and ruby-2.7.4.tar.gz

About: Ruby is an interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). Stable release of 2.7 series.

test_drb.rb  (ruby-2.7.3):test_drb.rb  (ruby-2.7.4)
skipping to change at line 326 skipping to change at line 326
foo = @there.foo foo = @there.foo
assert_operator(@there, :foo?, foo) assert_operator(@there, :foo?, foo)
end end
end end
class TestDRbAnyToS < Test::Unit::TestCase class TestDRbAnyToS < Test::Unit::TestCase
class BO < BasicObject class BO < BasicObject
end end
def test_any_to_s def test_any_to_s
server = DRb::DRbServer.new('druby://:0') server = DRb::DRbServer.new('druby://localhost:0')
server.singleton_class.send(:public, :any_to_s) server.singleton_class.send(:public, :any_to_s)
assert_equal("foo:String", server.any_to_s("foo")) assert_equal("foo:String", server.any_to_s("foo"))
assert_match(/\A#<DRbTests::TestDRbAnyToS::BO:0x[0-9a-f]+>\z/, server.any_to _s(BO.new)) assert_match(/\A#<DRbTests::TestDRbAnyToS::BO:0x[0-9a-f]+>\z/, server.any_to _s(BO.new))
server.stop_service server.stop_service
server.thread.join server.thread.join
DRb::DRbConn.stop_pool DRb::DRbConn.stop_pool
end end
end end
class TestDRbTCP < Test::Unit::TestCase class TestDRbTCP < Test::Unit::TestCase
def test_immediate_close def test_immediate_close
server = DRb::DRbServer.new('druby://:0') server = DRb::DRbServer.new('druby://localhost:0')
host, port, = DRb::DRbTCPSocket.send(:parse_uri, server.uri) host, port, = DRb::DRbTCPSocket.send(:parse_uri, server.uri)
socket = TCPSocket.open host, port socket = TCPSocket.open host, port
socket.shutdown socket.shutdown
socket.close socket.close
client = DRb::DRbTCPSocket.new(server.uri, socket) client = DRb::DRbTCPSocket.new(server.uri, socket)
assert client assert client
client.close client.close
server.stop_service server.stop_service
server.thread.join server.thread.join
DRb::DRbConn.stop_pool DRb::DRbConn.stop_pool
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)