From dff1f98662289589ca6227bffa885f90b5773e62 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 14 Nov 2012 16:05:03 +0000 Subject: Updated each test to use the timeout period specified in the JSON hash. Update the trivial test to set such a thing too. --- lib/custodian/protocol-tests/ldap.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/custodian/protocol-tests/ldap.rb') diff --git a/lib/custodian/protocol-tests/ldap.rb b/lib/custodian/protocol-tests/ldap.rb index cec146b..5c94dd8 100755 --- a/lib/custodian/protocol-tests/ldap.rb +++ b/lib/custodian/protocol-tests/ldap.rb @@ -74,7 +74,7 @@ class LDAPTest puts "LDAP testing host #{host}:#{port}" if ( @test_data['verbose'] ) begin - timeout(3) do + timeout(@test_data["timeout"]) do begin socket = TCPSocket.new( host, port ) @@ -122,6 +122,7 @@ if __FILE__ == $0 then "test_type" => "ldap", "test_port" => 389, "verbose" => 1, + "timeout" => 5, "test_alert" => "LDAP is down?", } -- cgit v1.2.1