diff --git a/packages/phone-number-privacy/combiner/package.json b/packages/phone-number-privacy/combiner/package.json index ab41a0a8f..90e792d14 100644 --- a/packages/phone-number-privacy/combiner/package.json +++ b/packages/phone-number-privacy/combiner/package.json @@ -18,7 +18,7 @@ "test:debug": "node --inspect ../../../node_modules/.bin/jest --runInBand", "test:coverage": "yarn test --coverage", "test:integration": "jest --runInBand test/integration", - "test:e2e": "jest --runInBand test/end-to-end --verbose", + "test:e2e": "E2E_TESTING=true jest --runInBand test/end-to-end --verbose", "test:e2e:staging": "CONTEXT_NAME=staging yarn test:e2e", "test:e2e:alfajores": "CONTEXT_NAME=alfajores yarn test:e2e", "test:e2e:mainnet": "CONTEXT_NAME=mainnet yarn test:e2e" diff --git a/packages/phone-number-privacy/combiner/src/config.ts b/packages/phone-number-privacy/combiner/src/config.ts index 541dd0159..b3d794521 100644 --- a/packages/phone-number-privacy/combiner/src/config.ts +++ b/packages/phone-number-privacy/combiner/src/config.ts @@ -4,7 +4,6 @@ import { FULL_NODE_TIMEOUT_IN_MS, RETRY_COUNT, RETRY_DELAY_IN_MS, - rootLogger, TestUtils, toBool, } from '@celo/phone-number-privacy-common' @@ -61,7 +60,6 @@ const defaultMockDEK = ensureLeading0x( ) if (DEV_MODE) { - rootLogger(defaultServiceName).debug('Running in dev mode') const devSignersString = JSON.stringify([ { url: 'http://localhost:3001', diff --git a/packages/phone-number-privacy/combiner/src/index.ts b/packages/phone-number-privacy/combiner/src/index.ts index 564621857..1dbd26ec2 100644 --- a/packages/phone-number-privacy/combiner/src/index.ts +++ b/packages/phone-number-privacy/combiner/src/index.ts @@ -17,11 +17,13 @@ async function start() { }) } -start().catch((err) => { - const logger = rootLogger(config.serviceName) - logger.error({ err }, 'Fatal error occured. Exiting') - process.exit(1) -}) +if (!process.env.E2E_TESTING) { + start().catch((err) => { + const logger = rootLogger(config.serviceName) + logger.error({ err }, 'Fatal error occured. Exiting') + process.exit(1) + }) +} export * from './config' export * from './server'