Skip to content

Commit 4ab3c76

Browse files
committed
added error log checks in the test file 000_init.t.
1 parent 4cfa7f7 commit 4ab3c76

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

t/000_init.t

+19-1
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_POSTGRESQL_HOST} ||= '127.0.0.1';
1111
$ENV{TEST_NGINX_POSTGRESQL_PORT} ||= 5432;
@@ -36,6 +36,8 @@ __DATA__
3636
GET /init
3737
--- error_code: 200
3838
--- timeout: 10
39+
--- no_error_log
40+
[error]
3941
4042
4143
@@ -50,6 +52,8 @@ GET /init
5052
GET /init
5153
--- error_code: 200
5254
--- timeout: 10
55+
--- no_error_log
56+
[error]
5357
5458
5559
@@ -64,6 +68,8 @@ GET /init
6468
GET /init
6569
--- error_code: 200
6670
--- timeout: 10
71+
--- no_error_log
72+
[error]
6773
6874
6975
@@ -78,6 +84,8 @@ GET /init
7884
GET /init
7985
--- error_code: 200
8086
--- timeout: 10
87+
--- no_error_log
88+
[error]
8189
8290
8391
@@ -95,6 +103,8 @@ GET /init
95103
GET /init
96104
--- error_code: 200
97105
--- timeout: 10
106+
--- no_error_log
107+
[error]
98108
99109
100110
@@ -109,6 +119,8 @@ GET /init
109119
GET /init
110120
--- error_code: 200
111121
--- timeout: 10
122+
--- no_error_log
123+
[error]
112124
113125
114126
@@ -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,6 +154,8 @@ GET /init
140154
GET /init
141155
--- error_code: 200
142156
--- timeout: 10
157+
--- no_error_log
158+
[error]
143159
144160
145161
@@ -154,3 +170,5 @@ GET /init
154170
GET /init
155171
--- error_code: 200
156172
--- timeout: 10
173+
--- no_error_log
174+
[error]

0 commit comments

Comments
 (0)