From fe5f37b5d3b5253e915809039e80f81d5bb1495c Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Mon, 19 Sep 2011 12:05:03 -0400 Subject: [PATCH] minor: remove bad test --- test/connection_test.rb | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/test/connection_test.rb b/test/connection_test.rb index de2fe70..9b3599a 100644 --- a/test/connection_test.rb +++ b/test/connection_test.rb @@ -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