minor: remove bad test

This commit is contained in:
Kyle Banker 2011-09-19 12:05:03 -04:00
parent ec97cd6d53
commit fe5f37b5d3
1 changed files with 12 additions and 13 deletions

View File

@ -22,20 +22,19 @@ class TestConnection < Test::Unit::TestCase
end end
end end
def test_connection_timeout # def test_connection_timeout
passed = false # passed = false
begin # begin
t0 = Time.now # t0 = Time.now
Mongo::Connection.new('192.169.169.1', 27017, :connect_timeout => 3) # Mongo::Connection.new('foo.bar', 27017, :connect_timeout => 3)
rescue OperationTimeout # rescue OperationTimeout
passed = true # passed = true
t1 = Time.now # t1 = Time.now
end # end
assert passed
assert t1 - t0 < 4
end
# assert passed
# assert t1 - t0 < 4
# end
def test_host_port_accessors def test_host_port_accessors
assert_equal @conn.host, TEST_HOST assert_equal @conn.host, TEST_HOST