summaryrefslogtreecommitdiff
path: root/lib/custodian
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-21 23:36:29 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-21 23:36:29 +0000
commit8334644b237ac4ccfb533b9c79985904007ac6da (patch)
tree81a9d0022b5416ff30d1f828dc0c0f91e43b09df /lib/custodian
parent0971310be8093ab53b430ac5a8c7217ba8bf76a9 (diff)
comment updates.
Diffstat (limited to 'lib/custodian')
-rw-r--r--lib/custodian/protocoltest.rb7
-rw-r--r--lib/custodian/protocoltest/jabber.rb2
2 files changed, 6 insertions, 3 deletions
diff --git a/lib/custodian/protocoltest.rb b/lib/custodian/protocoltest.rb
index 1a2f796..9efeb0f 100644
--- a/lib/custodian/protocoltest.rb
+++ b/lib/custodian/protocoltest.rb
@@ -10,9 +10,8 @@ require 'json'
#
# This class is a factory that will return the correct
# derived class for a given line from our configuration
-# file.
+# file - or that line encoded as a JSON string.
#
-# TODO: We also wish to create from json.
#
class ProtocolTest
@@ -39,6 +38,10 @@ class ProtocolTest
line = obj["line"]
end
+
+ #
+ # If this is an obvious protocol test.
+ #
if ( line =~ /must\s+run\s+(\S+)(\s+|\.|$)/ )
test_type = $1.dup
test_type.chomp!( "." )
diff --git a/lib/custodian/protocoltest/jabber.rb b/lib/custodian/protocoltest/jabber.rb
index da400ac..5a38aa1 100644
--- a/lib/custodian/protocoltest/jabber.rb
+++ b/lib/custodian/protocoltest/jabber.rb
@@ -7,7 +7,7 @@
### foo.vm.bytemark.co.uk must run jabber otherwise 'chat failure'.
###
#
-# The specification of the port is optional.
+# The specification of the port is optional, and defaults to 5222.
#
class JABBERTest < TCPTest