Skip to content

Commit

Permalink
BB-624: Test CRR metrics at startup crash
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgoisMickael committed Nov 6, 2024
1 parent 617723b commit af67f46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/replication/QueueProcessor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,10 @@ describe('Queue Processor', () => {
sinon.assert.calledOnceWithExactly(res.writeHead, 200, { 'Content-Type': promClient.register.contentType });
sinon.assert.calledOnceWithExactly(res.end, fakeMetrics);
});

it('should not crash without _consumer', async () => {
qp._consumer = undefined;
return assert.doesNotReject(async () => await qp.handleMetrics(res, log));
});
});
});

0 comments on commit af67f46

Please sign in to comment.