Add e2e test suite to detect memory leaks in lua

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-06-27 10:03:20 -04:00
parent 2586542608
commit 591887089f
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
7 changed files with 259 additions and 47 deletions

View file

@ -54,7 +54,6 @@ http {
{{ buildLuaSharedDictionaries $servers $all.Cfg.DisableLuaRestyWAF }}
init_by_lua_block {
require("resty.core")
collectgarbage("collect")
{{ if not $all.Cfg.DisableLuaRestyWAF }}
@ -632,7 +631,6 @@ stream {
lua_shared_dict tcp_udp_configuration_data 5M;
init_by_lua_block {
require("resty.core")
collectgarbage("collect")
-- init modules