Use constants.TEST
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user