From 8a29221c08a90fd6fe85970210b4c3c8a3867de7 Mon Sep 17 00:00:00 2001 From: Daniel Dyla Date: Thu, 7 May 2020 11:26:02 -0400 Subject: [PATCH] chore: fix build on latest typings (#1035) --- .../test/prometheus.test.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/opentelemetry-exporter-prometheus/test/prometheus.test.ts b/packages/opentelemetry-exporter-prometheus/test/prometheus.test.ts index 2ed9852a542..6475d69cfbb 100644 --- a/packages/opentelemetry-exporter-prometheus/test/prometheus.test.ts +++ b/packages/opentelemetry-exporter-prometheus/test/prometheus.test.ts @@ -522,8 +522,5 @@ describe('PrometheusExporter', () => { }); function errorHandler(done: Mocha.Done): (err: Error) => void { - return () => { - assert.ok(false, 'error getting metrics'); - done(); - }; + return err => done(err); }