Skip to content

Commit 0d73dd7

Browse files
authored
chore: fix compilation (open-telemetry#705)
1 parent 33098e2 commit 0d73dd7

File tree

1 file changed

+6
-0
lines changed
  • packages/opentelemetry-plugin-postgres/opentelemetry-plugin-pg-pool/test

1 file changed

+6
-0
lines changed

Diff for: packages/opentelemetry-plugin-postgres/opentelemetry-plugin-pg-pool/test/pg-pool.test.ts

+6
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@ describe('[email protected]', () => {
186186
if (err) {
187187
return done(err);
188188
}
189+
if (!release) {
190+
throw new Error('Did not receive release function');
191+
}
192+
if (!client) {
193+
throw new Error('No client received');
194+
}
189195
release();
190196
assert.ok(client);
191197
runCallbackTest(parentSpan, pgPoolattributes, events, okStatus, 1, 0);

0 commit comments

Comments
 (0)