File tree 1 file changed +22
-1
lines changed 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ select STDOUT; $| = 1;
26
26
27
27
plan(skip_all => ' win32' ) if $^O eq ' MSWin32' ;
28
28
29
- my $t = Test::Nginx-> new()-> has(qw/ http limit_req/ )-> plan(59 );
29
+ my $t = Test::Nginx-> new()-> has(qw/ http limit_req/ )-> plan(61 );
30
30
31
31
$t -> write_file_expand(' nginx.conf' , <<'EOF' );
32
32
@@ -231,6 +231,27 @@ like(get_syslog('/nohostname'),
231
231
(.*)/ x , # MSG
232
232
' nohostname' );
233
233
234
+ # send error handling
235
+
236
+ ok(get_syslog(' /a' ), ' send success' );
237
+
238
+ close $s ;
239
+
240
+ get_syslog(' /a' );
241
+ get_syslog(' /a' );
242
+
243
+ $s = IO::Socket::INET-> new(
244
+ Proto => ' udp' ,
245
+ LocalAddr => ' 127.0.0.1:' . port(8984)
246
+ )
247
+ or die " Can't open syslog socket: $! " ;
248
+
249
+ ok(get_syslog(' /a' ), ' send error - recover' );
250
+
251
+ # broken in fa0e093b64d7
252
+
253
+ $t -> todo_alerts() if $t -> has_version(' 1.15.0' );
254
+
234
255
# ##############################################################################
235
256
236
257
sub syslog_lines {
You can’t perform that action at this time.
0 commit comments