From: Anton Yuzhaninov Date: Tue, 8 Feb 2022 21:22:34 +0000 (+0000) Subject: [Minor] Tune Lua GC for Lua unit tests X-Git-Tag: 3.2~63^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4066%2Fhead;p=rspamd.git [Minor] Tune Lua GC for Lua unit tests Fixes sporadic unit test failures (on Mac OS X). --- diff --git a/test/rspamd_test_suite.c b/test/rspamd_test_suite.c index 8c0dc1c29..62b22616a 100644 --- a/test/rspamd_test_suite.c +++ b/test/rspamd_test_suite.c @@ -35,6 +35,8 @@ main (int argc, char **argv) rspamd_main->server_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL, 0); cfg = rspamd_config_new (RSPAMD_CONFIG_INIT_DEFAULT); cfg->libs_ctx = rspamd_init_libs (); + /* More agressive GC, workaround for 'not enough memory' test failures */ + cfg->lua_gc_step *= 2; rspamd_main->cfg = cfg; cfg->cfg_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL, 0);