Skip to content

Commit 91585af

Browse files
authored
test: check "error" in the logs when using set_timeouts (openresty#231)
1 parent 12cdc0b commit 91585af

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

t/sanity.t

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,8 @@ failed to connect: connection refused
803803
}
804804
--- response_body
805805
failed to connect: timeout
806-
--- no_error_log
807-
[alert]
806+
--- error_log
807+
lua tcp socket connect timed out
808808

809809

810810

@@ -841,8 +841,8 @@ failed to connect: timeout
841841
--- response_body
842842
flushall: OK
843843
failed to blpop: timeout
844-
--- no_error_log
845-
[alert]
844+
--- error_log
845+
lua tcp socket read timed out
846846

847847

848848

@@ -879,8 +879,8 @@ failed to blpop: timeout
879879
--- response_body
880880
flushall: OK
881881
failed to blpop: timeout
882-
--- no_error_log
883-
[alert]
882+
--- error_log
883+
lua tcp socket read timed out
884884

885885

886886

0 commit comments

Comments
 (0)