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
def test_connection_timeout
passed = false
begin
t0 = Time.now
Mongo::Connection.new('192.169.169.1', 27017, :connect_timeout => 3)
rescue OperationTimeout
passed = true
t1 = Time.now
end
assert passed
assert t1 - t0 < 4
end
# def test_connection_timeout
# passed = false
# begin
# t0 = Time.now
# Mongo::Connection.new('foo.bar', 27017, :connect_timeout => 3)
# rescue OperationTimeout
# passed = true
# t1 = Time.now
# end
# assert passed
# assert t1 - t0 < 4
# end
def test_host_port_accessors
assert_equal @conn.host, TEST_HOST