From 67ac15a68ab7dee8c0a880c44e8caaaf79b39310 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/ftp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/custodian/protocol-tests/ftp.rb') diff --git a/lib/custodian/protocol-tests/ftp.rb b/lib/custodian/protocol-tests/ftp.rb index a11abaf..2d0700a 100755 --- a/lib/custodian/protocol-tests/ftp.rb +++ b/lib/custodian/protocol-tests/ftp.rb @@ -74,7 +74,7 @@ class FTPTest puts "FTP 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