From f5da9ee1a1c7fed821da88c9599842dc3c185d48 Mon Sep 17 00:00:00 2001 From: Harry Chen Date: Wed, 31 Oct 2018 14:24:19 +0800 Subject: [PATCH] fix: fix client NPE --- packages/hook/test/TestHelper.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/hook/test/TestHelper.ts b/packages/hook/test/TestHelper.ts index 0d82c852..77da24c9 100644 --- a/packages/hook/test/TestHelper.ts +++ b/packages/hook/test/TestHelper.ts @@ -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());