Skip to content

Commit a842f92

Browse files
committed
tests: t/conditional-get.t: fixed a test failing with the 1.15.8 nginx core.
The 1.15.8 nginx core does not add the "bgcolor=white" html attribute and thus the Content-Type header is different. We do not use response_headers_like as it seems the `!Location` is resulting in a Perl warning for using an uninitialized variable in Test::Nginx::Socket.
1 parent 53a9880 commit a842f92

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

t/conditional-get.t

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Test::Nginx::Socket;
55

66
#repeat_each(100);
77

8-
plan tests => repeat_each() * (6 * blocks());
8+
plan tests => repeat_each() * (6 * blocks() - 1);
99

1010
$ENV{TEST_NGINX_MEMCACHED_PORT} ||= 11211;
1111
#$ENV{TEST_NGINX_MYSQL_PORT} ||= 3306;
@@ -229,7 +229,6 @@ GET /cats
229229
If-Unmodified-Since: Thu, 10 May 2012 07:50:58 GMT
230230
--- response_headers
231231
Content-Type: text/html
232-
Content-Length: 186
233232
!Last-Modified
234233
--- response_body_like: 412 Precondition Failed
235234
--- error_code: 412

0 commit comments

Comments
 (0)