Skip to content

Commit f9d5d9c

Browse files
committed
added error log tests.
1 parent c56744c commit f9d5d9c

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

t/000_init.t

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Test::Nginx::Socket;
55

66
repeat_each(1);
77

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

1010
$ENV{TEST_NGINX_MYSQL_PORT} ||= 3306;
1111
$ENV{TEST_NGINX_POSTGRESQL_PORT} ||= 5432;
@@ -42,6 +42,8 @@ __DATA__
4242
GET /init
4343
--- error_code: 200
4444
--- timeout: 10
45+
--- no_error_log
46+
[error]
4547
4648
4749
@@ -56,6 +58,8 @@ GET /init
5658
GET /init
5759
--- error_code: 200
5860
--- timeout: 10
61+
--- no_error_log
62+
[error]
5963
6064
6165
@@ -70,6 +74,8 @@ GET /init
7074
GET /init
7175
--- error_code: 200
7276
--- timeout: 10
77+
--- no_error_log
78+
[error]
7379
7480
7581
@@ -84,6 +90,8 @@ GET /init
8490
GET /init
8591
--- error_code: 200
8692
--- timeout: 10
93+
--- no_error_log
94+
[error]
8795
8896
8997
@@ -98,6 +106,8 @@ GET /init
98106
GET /init
99107
--- error_code: 200
100108
--- timeout: 10
109+
--- no_error_log
110+
[error]
101111
102112
103113
@@ -112,6 +122,8 @@ GET /init
112122
GET /init
113123
--- error_code: 200
114124
--- timeout: 10
125+
--- no_error_log
126+
[error]
115127
116128
117129
@@ -126,6 +138,8 @@ GET /init
126138
GET /init
127139
--- error_code: 200
128140
--- timeout: 10
141+
--- no_error_log
142+
[error]
129143
130144
131145
@@ -140,4 +154,6 @@ GET /init
140154
GET /init
141155
--- error_code: 200
142156
--- timeout: 10
157+
--- no_error_log
158+
[error]
143159

t/drizzle-main.t

Lines changed: 7 additions & 1 deletion
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() * 3 * blocks();
8+
plan tests => repeat_each() * 4 * blocks();
99

1010
$ENV{TEST_NGINX_MEMCACHED_PORT} ||= 11211;
1111
$ENV{TEST_NGINX_MYSQL_PORT} ||= 3306;
@@ -27,6 +27,8 @@ Content-Type: text/plain
2727
--- request
2828
GET /flush
2929
--- response_body eval: "OK\r\n"
30+
--- no_error_log
31+
[error]
3032
3133
3234
@@ -62,6 +64,8 @@ GET /cats
6264
Content-Type: application/json
6365
--- response_body chomp
6466
[{"id":2,"name":null},{"id":3,"name":"bob"}]
67+
--- no_error_log
68+
[error]
6569
6670
6771
@@ -97,4 +101,6 @@ GET /cats
97101
Content-Type: application/json
98102
--- response_body chomp
99103
[{"id":2,"name":null},{"id":3,"name":"bob"}]
104+
--- no_error_log
105+
[error]
100106

0 commit comments

Comments
 (0)