diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-14 08:25:06 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-14 08:25:06 +0000 |
commit | 65fbf9fcb7c30ee19b69bff8909aee5bdc1bc60a (patch) | |
tree | 5840dc27b1959d0a3e7180a054e8a8838c950baf /lib/custodian/protocol-tests/ftp.rb | |
parent | e170d7db1dbcea28ef14c341c81bf676839faa51 (diff) |
Ensure we reset the error before re-testing a failure case.
Diffstat (limited to 'lib/custodian/protocol-tests/ftp.rb')
-rwxr-xr-x | lib/custodian/protocol-tests/ftp.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/custodian/protocol-tests/ftp.rb b/lib/custodian/protocol-tests/ftp.rb index 686d53d..c528c84 100755 --- a/lib/custodian/protocol-tests/ftp.rb +++ b/lib/custodian/protocol-tests/ftp.rb @@ -30,7 +30,6 @@ class FTPTest @test_data = data @error = nil - # # Ensure we have a host to probe # @@ -62,6 +61,11 @@ class FTPTest def run_test # + # Reset state from previous test. + # + @error = nil + + # # Get the hostname & port to test against. # host = @test_data["target_host"] |