minor: remove bad test
This commit is contained in:
parent
ec97cd6d53
commit
fe5f37b5d3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue