Skip to content

Commit aef400b

Browse files
committed
drop some unneeded type casting
1 parent f61c339 commit aef400b

File tree

1 file changed

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

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('redis v4', () => {
8181
beforeEach(async () => {
8282
client = createClient({
8383
url: redisTestUrl,
84-
}) as unknown as RedisClientType;
84+
});
8585
await context.with(suppressTracing(context.active()), async () => {
8686
await client.connect();
8787
});
@@ -191,7 +191,7 @@ describe('redis v4', () => {
191191
it('produces a span', async () => {
192192
const newClient = createClient({
193193
url: redisTestUrl,
194-
}) as unknown as RedisClientType;
194+
});
195195

196196
after(async () => {
197197
await newClient.disconnect();
@@ -224,7 +224,7 @@ describe('redis v4', () => {
224224
}`;
225225
const newClient = createClient({
226226
url: redisURL,
227-
}) as unknown as RedisClientType;
227+
});
228228

229229
await assert.rejects(newClient.connect());
230230

@@ -247,7 +247,7 @@ describe('redis v4', () => {
247247
}`;
248248
const newClient = createClient({
249249
url: redisURL,
250-
}) as unknown as RedisClientType;
250+
});
251251

252252
await assert.rejects(newClient.connect());
253253

@@ -274,7 +274,7 @@ describe('redis v4', () => {
274274
}?db=mydb`;
275275
const newClient = createClient({
276276
url: redisURL,
277-
}) as unknown as RedisClientType;
277+
});
278278

279279
await assert.rejects(newClient.connect());
280280

@@ -308,7 +308,7 @@ describe('redis v4', () => {
308308
DiagLogLevel.WARN
309309
);
310310

311-
const newClient = createClient({ url: '' }) as unknown as RedisClientType;
311+
const newClient = createClient({ url: '' });
312312
try {
313313
await newClient.connect();
314314
} catch (_err) {

0 commit comments

Comments
 (0)