We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec97cd6 commit fe5f37bCopy full SHA for fe5f37b
test/connection_test.rb
@@ -22,20 +22,19 @@ def test_connection_failure
22
end
23
24
25
- def test_connection_timeout
26
- passed = false
27
- begin
28
- t0 = Time.now
29
- Mongo::Connection.new('192.169.169.1', 27017, :connect_timeout => 3)
30
- rescue OperationTimeout
31
- passed = true
32
- t1 = Time.now
33
- end
34
-
35
- assert passed
36
- assert t1 - t0 < 4
37
38
+ # 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
39
40
def test_host_port_accessors
41
assert_equal @conn.host, TEST_HOST
0 commit comments