diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-10 11:22:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-10 11:22:12 +0100 |
commit | 819de7eed4997268ebeb26809e2178f958f504f0 (patch) | |
tree | 9b0d7aa664a725d555cda30752bd28da01299a00 /test/functional/lua/miltertest/lib.lua | |
parent | 374f1a04be5f562c66d0a27f7580966329059301 (diff) | |
parent | 60b2f09394481bef02238e267c3f4dfed902c725 (diff) | |
download | rspamd-819de7eed4997268ebeb26809e2178f958f504f0.tar.gz rspamd-819de7eed4997268ebeb26809e2178f958f504f0.zip |
Merge pull request #2476 from negram/fix-milter-test
Fix milter test
Diffstat (limited to 'test/functional/lua/miltertest/lib.lua')
-rw-r--r-- | test/functional/lua/miltertest/lib.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/lua/miltertest/lib.lua b/test/functional/lua/miltertest/lib.lua index f7dc3cc79..e94efd559 100644 --- a/test/functional/lua/miltertest/lib.lua +++ b/test/functional/lua/miltertest/lib.lua @@ -21,7 +21,10 @@ function setup(c_ip, helo, hn) end function teardown() - mt.disconnect(conn) + if conn then + mt.disconnect(conn) + end + conn = nil end function send_message(body, hdrs, id, sender, rcpts) |