Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
fix: fix client NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Oct 31, 2018
1 parent 92c70f9 commit f5da9ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/hook/test/TestHelper.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import {EnvironmentUtil} from 'pandora-env';
import {MockEnvironment} from './MockEnvironment';
import { MetricsClient, MetricsClientUtil } from 'pandora-metrics';
const events = require('events');
events.defaultMaxListeners = 100;
process.env.NODE_ENV = 'test';
// setup mock env
EnvironmentUtil.getInstance().setCurrentEnvironment(new MockEnvironment());
MetricsClientUtil.setMetricsClient(MetricsClient.getInstance());

0 comments on commit f5da9ee

Please sign in to comment.