From 953fc70466a919df1e4fce6fc3dea40b951e2185 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 15 May 2013 14:17:29 +0100 Subject: The TCP-test now uses a regexp. Each test has been updated to pass a regexp object to the tcp.rb primitive which actually does the socket connection. This closes #4036 --- lib/custodian/protocoltest/smtp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/custodian/protocoltest/smtp.rb') diff --git a/lib/custodian/protocoltest/smtp.rb b/lib/custodian/protocoltest/smtp.rb index 89e2b24..f769c27 100644 --- a/lib/custodian/protocoltest/smtp.rb +++ b/lib/custodian/protocoltest/smtp.rb @@ -74,7 +74,7 @@ module Custodian # reset the error, in case we were previously executed. @error = nil - run_test_internal( @host, @port, "SMTP" ) + run_test_internal( @host, @port, /^220/ ) end -- cgit v1.2.1