summaryrefslogtreecommitdiff
path: root/lib/custodian/protocol-tests/jabber.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/custodian/protocol-tests/jabber.rb')
-rwxr-xr-xlib/custodian/protocol-tests/jabber.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/custodian/protocol-tests/jabber.rb b/lib/custodian/protocol-tests/jabber.rb
index 1769eb8..489b82a 100755
--- a/lib/custodian/protocol-tests/jabber.rb
+++ b/lib/custodian/protocol-tests/jabber.rb
@@ -75,7 +75,7 @@ class JABBERTest
puts "Jabber testing host #{host}:#{port}" if ( @test_data['verbose'] )
begin
- timeout(3) do
+ timeout(@test_data["timeout"]) do
begin
socket = TCPSocket.new( host, port )
@@ -130,6 +130,8 @@ if __FILE__ == $0 then
test = {
"target_host" => "chat.bytemark.co.uk",
"test_type" => "jabber",
+ "test_port" => "5222",
+ "timeout" => 4,
"verbose" => 1,
"test_alert" => "Chat is down?",
}