Skip to content

Commit

Permalink
Shutdown right after the query.
Browse files Browse the repository at this point in the history
  • Loading branch information
onurtemizkan committed Dec 6, 2024
1 parent ba9fafa commit 76cefbb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ await client.connect();

const tracer = trace.getTracer();

await tracer.startActiveSpan('test-span', async (span) => {
await tracer.startActiveSpan('test-span', async span => {
const res = await client.query('SELECT NOW()');

assert.ok(res);
span.end();
});

await client.end();
await sdk.shutdown();
await client.end();
await sdk.shutdown();
});

0 comments on commit 76cefbb

Please sign in to comment.