mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Close connections before forking.
This commit is contained in:
@@ -22,7 +22,6 @@ from . import constants
|
||||
|
||||
|
||||
def start_policy_daemon():
|
||||
db.connections.close_all()
|
||||
call_command("policy_daemon")
|
||||
|
||||
|
||||
@@ -52,6 +51,7 @@ class PolicyDaemonTestCase(ModoTestCase):
|
||||
)
|
||||
self.rclient.set_response_callback("HGET", int)
|
||||
self.rclient.delete(constants.REDIS_HASHNAME)
|
||||
db.connections.close_all()
|
||||
patcher = patch("aiosmtplib.send")
|
||||
self.send_mock = patcher.start()
|
||||
self.process = Process(target=start_policy_daemon)
|
||||
|
||||
@@ -54,7 +54,7 @@ else:
|
||||
"PORT": "",
|
||||
"ATOMIC_REQUESTS": True,
|
||||
"OPTIONS": {
|
||||
"client_encoding": "UTF8",
|
||||
"client_encoding": "UTF8"
|
||||
},
|
||||
"TEST": {
|
||||
"CHARSET": "UTF8",
|
||||
|
||||
Reference in New Issue
Block a user