fix mod_lua check, add timeout, dont hang on ws handshake error


git-svn-id: https://svn.apache.org/repos/asf/httpd/test/framework/trunk@1885587 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/t/modules/proxy_websockets.t b/t/modules/proxy_websockets.t
index ef26881..bba3ea1 100644
--- a/t/modules/proxy_websockets.t
+++ b/t/modules/proxy_websockets.t
@@ -11,13 +11,12 @@
 
 my $total_tests = 1;
 
-plan tests => $total_tests, need  'AnyEvent', need_module 'proxy_http', need_module 'lua', need_min_apache_version('2.5.1');
-;
+plan tests => $total_tests, need  'AnyEvent', need_module('proxy_http', 'lua'), need_min_apache_version('2.5.1');
 
 my $config = Apache::Test::config();
 my $hostport = Apache::TestRequest::hostport();
 
-my $client = AnyEvent::WebSocket::Client->new;
+my $client = AnyEvent::WebSocket::Client->new(timeout => 5);
 
 my $quit_program = AnyEvent->condvar;
 
@@ -29,6 +28,7 @@
   if($@) {
     # handle error...
     warn $@;
+    $quit_program->send();
     return;
   }