summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-07-29 13:06:01 +0300
committerSteve Kemp <steve@steve.org.uk>2015-07-29 13:06:01 +0300
commitb698db43443e32b8c71b19a23f4265a22e343985 (patch)
tree7199389ab50bb7d43e32fead7e2292086a320042 /lib/custodian/protocoltest
parent487c229014a5d6234b01d163f1b449511725a861 (diff)
Loosen teh grammar on tcp-tests.
In the past we needed to write: must run tcp on 3306. Now we can add the "port" to match the rest of the tests: must run tcp on port 3306.
Diffstat (limited to 'lib/custodian/protocoltest')
-rw-r--r--lib/custodian/protocoltest/tcp.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/custodian/protocoltest/tcp.rb b/lib/custodian/protocoltest/tcp.rb
index 684452b..c50c144 100644
--- a/lib/custodian/protocoltest/tcp.rb
+++ b/lib/custodian/protocoltest/tcp.rb
@@ -68,10 +68,13 @@ module Custodian
#
# Save the port
#
+ @port = nil
+
if line =~ /on\s+([0-9]+)/
@port = $1.dup
- else
- @port = nil
+ end
+ if line =~ /on\s+port\s+([0-9]+)/
+ @port = $1.dup
end
#