From 80e855aa39ed10ee42cd3c839dc16a5d0449561a Mon Sep 17 00:00:00 2001 From: Rauno Viskus Date: Mon, 11 Apr 2022 12:36:05 +0300 Subject: [PATCH] fix: don't try to shut cassandra client down if it wasn't initialized (#966) --- .../test/cassandra-driver.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/node/opentelemetry-instrumentation-cassandra/test/cassandra-driver.test.ts b/plugins/node/opentelemetry-instrumentation-cassandra/test/cassandra-driver.test.ts index da34d02b022..42b8f9082ca 100644 --- a/plugins/node/opentelemetry-instrumentation-cassandra/test/cassandra-driver.test.ts +++ b/plugins/node/opentelemetry-instrumentation-cassandra/test/cassandra-driver.test.ts @@ -165,7 +165,7 @@ describe('CassandraDriverInstrumentation', () => { after(async function () { this.timeout(60000); - await client.shutdown(); + await client?.shutdown?.(); if (testCassandraLocally) { testUtils.cleanUpDocker('cassandra'); }