commit f227be5: [Test] Clean up dummy ssl client

Vsevolod Stakhov vsevolod at rspamd.com
Sat Dec 31 21:42:05 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-12-31 21:37:45 +0000
URL: https://github.com/rspamd/rspamd/commit/f227be52b2087e105491fb6b9337df084f84417f (HEAD -> master)

[Test] Clean up dummy ssl client

---
 test/functional/cases/230_tcp.robot | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/functional/cases/230_tcp.robot b/test/functional/cases/230_tcp.robot
index f5591a8b8..9848be07a 100644
--- a/test/functional/cases/230_tcp.robot
+++ b/test/functional/cases/230_tcp.robot
@@ -58,12 +58,17 @@ Servers Teardown
   Dummy Http Teardown
   Dummy Https Teardown
   Rspamd Teardown
+  Teardown Dummy Ssl
 
 Run Dummy Ssl
   [Arguments]
   ${result} =  Start Process  ${RSPAMD_TESTDIR}/util/dummy_ssl.py  ${RSPAMD_TESTDIR}/util/server.pem
   Wait Until Created  /tmp/dummy_ssl.pid  timeout=2 second
 
+Teardown Dummy Ssl
+  ${ssl_pid} =  Get File  /tmp/dummy_ssl.pid
+  Shutdown Process With Children  ${ssl_pid}
+
 Check url
   [Arguments]  ${url}  ${method}  ${expect_symbol}  @{expect_options}
   Scan File  ${MESSAGE}  URL=${url}  Method=${method}


More information about the Commits mailing list