Use constants.TEST

This commit is contained in:
Girish Ramakrishnan
2023-10-01 13:52:19 +05:30
parent 0e195679bf
commit ceb908bee7
20 changed files with 26 additions and 23 deletions

View File

@@ -194,7 +194,7 @@ async function configureMail(mailFqdn, mailDomain, serviceConfig) {
}
async function restart() {
if (process.env.BOX_ENV === 'test' && !process.env.TEST_CREATE_INFRA) return;
if (constants.TEST && !process.env.TEST_CREATE_INFRA) return;
const mailConfig = await services.getServiceConfig('mail');
const { domain, fqdn } = await getLocation();