summaryrefslogtreecommitdiff
path: root/lib/custodian/protocol-tests/smtp.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-14 20:26:51 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-14 20:26:51 +0000
commite26d29b15c8012197c3ce72fc5dd75652daa38a6 (patch)
treeffe2cb3ef0d007a5abe6e611b41a25b8acaac772 /lib/custodian/protocol-tests/smtp.rb
parent5a1a8a9ecbfcfa90a09ce2a0006c39d97af9ee63 (diff)
Ensure that our timeout period is an integer
Diffstat (limited to 'lib/custodian/protocol-tests/smtp.rb')
-rwxr-xr-xlib/custodian/protocol-tests/smtp.rb2
1 files changed, 1 insertions, 1 deletions
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 )