Skip to content

Commit d08d50d

Browse files
authored
chore(instrumentation-pg): use done on test (#2478)
1 parent 25ab243 commit d08d50d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/node/opentelemetry-instrumentation-pg/test/pg-pool.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ describe('pg-pool', () => {
491491
metricReader = testUtils.initMeterProvider(instrumentation);
492492
});
493493

494-
it('should generate `db.client.connection.count` and `db.client.connection.pending_requests` metrics', async () => {
494+
it('should generate `db.client.connection.count` and `db.client.connection.pending_requests` metrics', done => {
495495
pool.connect((err, client, release) => {
496496
if (err) {
497497
throw new Error(err.message);
@@ -563,6 +563,7 @@ describe('pg-pool', () => {
563563
0,
564564
'expected to have 0 pending requests'
565565
);
566+
done();
566567
});
567568
});
568569
});

0 commit comments

Comments
 (0)