]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Tune Lua GC for Lua unit tests 4066/head
authorAnton Yuzhaninov <citrin+git@citrin.ru>
Tue, 8 Feb 2022 21:22:34 +0000 (21:22 +0000)
committerAnton Yuzhaninov <citrin+git@citrin.ru>
Tue, 8 Feb 2022 21:25:05 +0000 (21:25 +0000)
Fixes sporadic unit test failures (on Mac OS X).

test/rspamd_test_suite.c

index 8c0dc1c295e203d3bbeb1691efc0c82f83de3010..62b22616a79729d76394e9573cb0de6acc733fa0 100644 (file)
@@ -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);