From e26d29b15c8012197c3ce72fc5dd75652daa38a6 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 14 Nov 2012 20:26:51 +0000 Subject: Ensure that our timeout period is an integer --- lib/custodian/protocol-tests/smtp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/custodian/protocol-tests/smtp.rb') diff --git a/lib/custodian/protocol-tests/smtp.rb b/lib/custodian/protocol-tests/smtp.rb index 340821c..6a3895d 100755 --- a/lib/custodian/protocol-tests/smtp.rb +++ b/lib/custodian/protocol-tests/smtp.rb @@ -74,7 +74,7 @@ class SMTPTest puts "SMTP testing host #{host}:#{port}" if ( @test_data['verbose'] ) begin - timeout(@test_data["timeout"]) do + timeout(@test_data["timeout"].to_i) do begin socket = TCPSocket.new( host, port ) -- cgit v1.2.1