Skip to content

Commit

Permalink
Merge pull request #4066 from citrin/lua-tests-gc
Browse files Browse the repository at this point in the history
[Minor] Tune Lua GC for Lua unit tests
  • Loading branch information
vstakhov committed Feb 9, 2022
2 parents d0321f0 + 07ed388 commit 0347091
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/rspamd_test_suite.c
Expand Up @@ -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);

Expand Down

0 comments on commit 0347091

Please sign in to comment.