diff options
author | Micah Anderson <micah@leap.se> | 2015-07-23 11:46:55 -0400 |
---|---|---|
committer | Micah Anderson <micah@leap.se> | 2015-07-23 11:46:55 -0400 |
commit | 70b1c648b94e6c007b9241a4661f33881e74485f (patch) | |
tree | 999e5dc1f386fc3894889c1cf263094cc748fd41 /tests/white-box/network.rb | |
parent | b429b30bda4dafc78cb02f6ece5d82f08e35de1f (diff) | |
parent | 2761fa77394d5a2857812de840e49172d0e486fb (diff) |
Merge branch 'develop'
Diffstat (limited to 'tests/white-box/network.rb')
-rw-r--r-- | tests/white-box/network.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/white-box/network.rb b/tests/white-box/network.rb index f2041710..acb5c5e6 100644 --- a/tests/white-box/network.rb +++ b/tests/white-box/network.rb @@ -46,7 +46,10 @@ class Network < LeapTest assert accept_port = stunnel_conf['accept_port'], "Field `accept` must be present in property `stunnel.servers.#{stunnel_name}`" assert_tcp_socket('localhost', accept_port) assert connect_port = stunnel_conf['connect_port'], "Field `connect` must be present in property `stunnel.servers.#{stunnel_name}`" - assert_tcp_socket('localhost', connect_port) + assert_tcp_socket('localhost', connect_port, + "The local connect endpoint for stunnel `#{stunnel_name}` is unavailable.\n"+ + "This is probably caused by a daemon that died or failed to start on\n"+ + "port `#{connect_port}`, not stunnel itself.") end all_stunnel_pids = pgrep('/usr/bin/stunnel').collect{|process| process[:pid]}.uniq assert_equal good_stunnel_pids.sort, all_stunnel_pids.sort, "There should not be any extra stunnel processes that are not configured in /etc/stunnel" |