From 65fbf9fcb7c30ee19b69bff8909aee5bdc1bc60a Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 14 Nov 2012 08:25:06 +0000 Subject: Ensure we reset the error before re-testing a failure case. --- lib/custodian/protocol-tests/smtp.rb | 5 ++++- 1 file changed, 4 insertions(+), 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 0017aa5..8ed19e8 100755 --- a/lib/custodian/protocol-tests/smtp.rb +++ b/lib/custodian/protocol-tests/smtp.rb @@ -60,7 +60,10 @@ class SMTPTest # If the test fails the details should be retrieved from "error". # def run_test - @error = "" + # + # Reset state from previous test. + # + @error = nil # # Get the hostname & port to test against. -- cgit v1.2.1