Close connections before forking.

This commit is contained in:
Antoine Nguyen
2020-06-15 13:48:37 +02:00
parent 050d9ed90a
commit 1d31463db7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -54,7 +54,7 @@ else:
"PORT": "",
"ATOMIC_REQUESTS": True,
"OPTIONS": {
"client_encoding": "UTF8",
"client_encoding": "UTF8"
},
"TEST": {
"CHARSET": "UTF8",