@@ -5,7 +5,7 @@ use t::TestNginxLua;
5
5
6
6
repeat_each(2 );
7
7
8
- plan tests => repeat_each() * (blocks() * 2 + 1 );
8
+ plan tests => repeat_each() * (blocks() * 3 + 1 );
9
9
10
10
# $ENV{LUA_PATH} = $ENV{HOME} . '/work/JSON4Lua-0.9.30/json/?.lua';
11
11
@@ -45,6 +45,8 @@ GET /main
45
45
32
46
46
updated
47
47
32
48
+ -- - no_error_log
49
+ [alert]
48
50
49
51
50
52
@@ -77,6 +79,8 @@ GET /main
77
79
32
78
80
updated
79
81
32
82
+ -- - no_error_log
83
+ [alert]
80
84
81
85
82
86
@@ -109,6 +113,9 @@ GET /main
109
113
32
110
114
updated
111
115
101
116
+ -- - error_log eval
117
+ qr/ \[alert\] \S+ lua_code_cache is off; this will hurt performance/
118
+
112
119
113
120
114
121
@@ -142,6 +149,9 @@ GET /main
142
149
32
143
150
updated
144
151
101
152
+ -- - error_log eval
153
+ qr/ \[alert\] \S+ lua_code_cache is off; this will hurt performance/
154
+
145
155
146
156
147
157
@@ -176,6 +186,8 @@ GET /main
176
186
32
177
187
updated
178
188
32
189
+ -- - error_log eval
190
+ qr/ \[alert\] \S+ lua_code_cache is off; this will hurt performance/
179
191
180
192
181
193
@@ -212,6 +224,8 @@ GET /main
212
224
32
213
225
updated
214
226
102
227
+ -- - error_log eval
228
+ qr/ \[alert\] \S+ lua_code_cache is off; this will hurt performance/
215
229
216
230
217
231
@@ -248,6 +262,8 @@ GET /main
248
262
32
249
263
updated
250
264
102
265
+ -- - error_log eval
266
+ qr/ \[alert\] \S+ lua_code_cache is off; this will hurt performance/
251
267
252
268
253
269
@@ -285,6 +301,8 @@ GET /main
285
301
32
286
302
updated
287
303
102
304
+ -- - error_log eval
305
+ qr/ \[alert\] \S+ lua_code_cache is off; this will hurt performance/
288
306
289
307
290
308
@@ -322,6 +340,8 @@ GET /main
322
340
32
323
341
updated
324
342
32
343
+ -- - no_error_log
344
+ [alert]
325
345
326
346
327
347
@@ -355,6 +375,8 @@ GET /main
355
375
32
356
376
updated
357
377
101
378
+ -- - error_log eval
379
+ qr/ \[alert\] \S+ lua_code_cache is off; this will hurt performance/
358
380
359
381
360
382
@@ -388,6 +410,8 @@ GET /main
388
410
32
389
411
updated
390
412
32
413
+ -- - no_error_log
414
+ [alert]
391
415
392
416
393
417
@@ -412,6 +436,9 @@ ngx.say(table.concat({1,2,3}, ", "))
412
436
1 , 2 , 3
413
437
5
414
438
1 , 2 , 3
439
+ -- - error_log eval
440
+ qr/ \[alert\] \S+ lua_code_cache is off; this will hurt performance/
441
+
415
442
416
443
417
444
@@ -435,6 +462,9 @@ ngx.say(table.concat({1,2,3}, ", "))
435
462
1 , 2 , 3
436
463
5
437
464
1 , 2 , 3
465
+ -- - error_log eval
466
+ qr/ \[alert\] \S+ lua_code_cache is off; this will hurt performance/
467
+
438
468
439
469
440
470
@@ -469,6 +499,9 @@ ngx.say("OK")
469
499
-- - response_body
470
500
OK
471
501
OK
502
+ -- - error_log eval
503
+ qr/ \[alert\] \S+ lua_code_cache is off; this will hurt performance/
504
+
472
505
473
506
474
507
@@ -517,6 +550,9 @@ loading
517
550
hello, foo
518
551
found
519
552
found
553
+ -- - error_log eval
554
+ qr/ \[alert\] \S+ lua_code_cache is off; this will hurt performance/
555
+
520
556
521
557
522
558
@@ -565,6 +601,9 @@ loading
565
601
hello, foo
566
602
found
567
603
found
604
+ -- - error_log eval
605
+ qr/ \[alert\] \S+ lua_code_cache is off; this will hurt performance/
606
+
568
607
569
608
570
609
@@ -587,6 +626,9 @@ found
587
626
GET / t
588
627
-- - response_body
589
628
_G. foo: 1
629
+ -- - error_log eval
630
+ qr/ \[alert\] \S+ lua_code_cache is off; this will hurt performance/
631
+
590
632
591
633
592
634
@@ -614,4 +656,7 @@ GET /t
614
656
^ table: 0 x\d*? [1 -9a-fA-F]
615
657
-- - no_error_log
616
658
[error]
659
+ -- - error_log eval
660
+ qr/ \[alert\] \S+ lua_code_cache is off; this will hurt performance/
661
+
617
662
0 commit comments