Skip to content

Commit 4c00019

Browse files
authored
Merge branch 'main' into remove-addLogRecordProcessor
2 parents f02c4a9 + b60b06e commit 4c00019

File tree

1 file changed

+6
-1
lines changed
  • plugins/node/opentelemetry-instrumentation-redis-4/test

1 file changed

+6
-1
lines changed

plugins/node/opentelemetry-instrumentation-redis-4/test/redis.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,12 @@ describe('redis@^4.0.0', () => {
314314
// Ignore. If the test Redis is not at the default port we expect this
315315
// to error.
316316
}
317-
await newClient.disconnect();
317+
try {
318+
await newClient.disconnect();
319+
} catch (_disconnectErr) {
320+
// Ignore. In [email protected] and earlier this disconnect throws
321+
// "The client is closed" if the connect failed.
322+
}
318323

319324
const [span] = getTestSpans();
320325
assert.strictEqual(span.name, 'redis-connect');

0 commit comments

Comments
 (0)