Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Dec 27, 2024
1 parent a4de864 commit e7f4e3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/v2/server/testMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe('Test middleware', () => {
},
},
});

req.ctx = new RequestContext(req);
middleware.httpMetricsMiddleware(req, resp);
await assertMetricValue('s3_utapi_http_requests_total', 1);
Expand All @@ -124,7 +124,7 @@ describe('Test middleware', () => {
);
const count = duration.filter(metric => metric.metricName === `${durationMetric}_count`);
assert.deepStrictEqual(count, [{
"exemplar": [undefined],
exemplar: [undefined],
labels: {
action: 'listMetrics',
code: 200,
Expand Down

0 comments on commit e7f4e3a

Please sign in to comment.