From ea767920fc2242451199a49ad0afd00fd4044326 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Wed, 1 Apr 2020 16:39:00 +0200 Subject: [PATCH] [misc] fix unit tests --- .../metrics/test/unit/coffee/timeAsyncMethodTests.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/metrics/test/unit/coffee/timeAsyncMethodTests.coffee b/libraries/metrics/test/unit/coffee/timeAsyncMethodTests.coffee index b6a4d3cd6b..67348e8ea1 100644 --- a/libraries/metrics/test/unit/coffee/timeAsyncMethodTests.coffee +++ b/libraries/metrics/test/unit/coffee/timeAsyncMethodTests.coffee @@ -53,7 +53,7 @@ describe 'timeAsyncMethod', -> @timeAsyncMethod @testObject, 'nextNumber', 'someContext.TestObject' @testObject.nextNumber 2, (err, result) => expect(@metrics.inc.callCount).to.equal 1 - expect(@metrics.inc.calledWith('someContext.TestObject.nextNumber.success')).to.equal true + expect(@metrics.inc.calledWith('someContext_result', 1, { method: 'TestObject_nextNumber', status: 'success'})).to.equal true done() describe 'when base method produces an error', -> @@ -78,7 +78,7 @@ describe 'timeAsyncMethod', -> @timeAsyncMethod @testObject, 'nextNumber', 'someContext.TestObject' @testObject.nextNumber 2, (err, result) => expect(@metrics.inc.callCount).to.equal 1 - expect(@metrics.inc.calledWith('someContext.TestObject.nextNumber.failure')).to.equal true + expect(@metrics.inc.calledWith('someContext_result', 1, { method: 'TestObject_nextNumber', status: 'failed'})).to.equal true done() describe 'when a logger is supplied', ->