diff options
author | Anton Yuzhaninov <citrin+git@citrin.ru> | 2022-02-08 21:22:34 +0000 |
---|---|---|
committer | Anton Yuzhaninov <citrin+git@citrin.ru> | 2022-02-08 21:25:05 +0000 |
commit | 07ed38868355db75fc0b7a2bc614c0bb9e19eabb (patch) | |
tree | 6cf4d70f6be11cd2019a12499b03048c5b2c72e2 /test | |
parent | d0321f0863e8d2d22177df38fea065ecf5dfe02e (diff) | |
download | rspamd-07ed38868355db75fc0b7a2bc614c0bb9e19eabb.tar.gz rspamd-07ed38868355db75fc0b7a2bc614c0bb9e19eabb.zip |
[Minor] Tune Lua GC for Lua unit tests
Fixes sporadic unit test failures (on Mac OS X).
Diffstat (limited to 'test')
-rw-r--r-- | test/rspamd_test_suite.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |