From e6a5fefac7c1078f05762b0c9aaa5f340fc0af5e 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/ssh.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/custodian/protocol-tests/ssh.rb') diff --git a/lib/custodian/protocol-tests/ssh.rb b/lib/custodian/protocol-tests/ssh.rb index b563aad..870be32 100755 --- a/lib/custodian/protocol-tests/ssh.rb +++ b/lib/custodian/protocol-tests/ssh.rb @@ -73,7 +73,7 @@ class SSHTest puts "ssh testing host #{host}:#{port}" if ( @test_data['verbose'] ) begin - timeout(3) do + timeout(@test_data["timeout"]) do begin socket = TCPSocket.new( host, port ) @@ -130,6 +130,7 @@ if __FILE__ == $0 then "test_type" => "ssh", "test_port" => 2222, "verbose" => 1, + "timeout" => 5, "test_alert" => "Steve's host isn't running SSH?", } -- cgit v1.2.1