Skip to content

Commit

Permalink
chore(instrumentation-pg): use done on test (#2478)
Browse files Browse the repository at this point in the history
  • Loading branch information
maryliag authored Oct 11, 2024
1 parent 25ab243 commit d08d50d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ describe('pg-pool', () => {
metricReader = testUtils.initMeterProvider(instrumentation);
});

it('should generate `db.client.connection.count` and `db.client.connection.pending_requests` metrics', async () => {
it('should generate `db.client.connection.count` and `db.client.connection.pending_requests` metrics', done => {
pool.connect((err, client, release) => {
if (err) {
throw new Error(err.message);
Expand Down Expand Up @@ -563,6 +563,7 @@ describe('pg-pool', () => {
0,
'expected to have 0 pending requests'
);
done();
});
});
});
Expand Down

0 comments on commit d08d50d

Please sign in to comment.