Use ipv4 address for deploy test

This commit is contained in:
Antoine Nguyen
2025-06-17 10:44:22 +02:00
parent 1bf7683009
commit 247d19c8c1
+1 -2
View File
@@ -15,7 +15,7 @@ else:
class DeployTest(unittest.TestCase):
dbtype = DB
dbhost = "localhost"
dbhost = "127.0.0.1"
dbport = PORT
projname = "modoboa_test"
dbuser = DB == "mysql" and "modoboa" or "postgres"
@@ -30,7 +30,6 @@ class DeployTest(unittest.TestCase):
f"modoboa-admin.py deploy --collectstatic "
f"--dburl {dburl} --domain localhost --admin-username admin {self.projname}"
)
print(cmd)
code, output = exec_cmd(cmd, cwd=self.workdir)
print(output)
self.assertEqual(code, 0)