Skip to content

Commit 3b8e312

Browse files
committed
Switch to @ts-ignore for v3 and v4 tests.
1 parent 153dfd6 commit 3b8e312

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v3.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ describe('MongoDBInstrumentation-Tracing-v3', () => {
8585
}
8686
// Non traced insertion of basic data to perform tests
8787
const insertData = [{ a: 1 }, { a: 2 }, { a: 3 }];
88-
// @ts-expect-error -- v5 removed callback support
88+
// @ts-ignore -- v5 removed callback support
8989
collection.insertMany(insertData, (err: any, result: any) => {
9090
resetMemoryExporter();
9191
done();
@@ -94,7 +94,7 @@ describe('MongoDBInstrumentation-Tracing-v3', () => {
9494

9595
afterEach(done => {
9696
if (shouldTest) {
97-
// @ts-expect-error -- v5 removed callback support
97+
// @ts-ignore -- v5 removed callback support
9898
collection.deleteMany({}, done);
9999
} else {
100100
done();
@@ -642,7 +642,7 @@ describe('MongoDBInstrumentation-Tracing-v3', () => {
642642
it('should generate correct span attributes', done => {
643643
const span = trace.getTracer('default').startSpan('findRootSpan');
644644
context.with(trace.setSpan(context.active(), span), () => {
645-
// @ts-expect-error -- v5 removed callback support
645+
// @ts-ignore -- v5 removed callback support
646646
collection.find({ a: 1 }).toArray((err, results) => {
647647
span.end();
648648
const [mongoSpan] = getTestSpans();

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ describe('MongoDBInstrumentation-Tracing-v4', () => {
8282
}
8383
// Non traced insertion of basic data to perform tests
8484
const insertData = [{ a: 1 }, { a: 2 }, { a: 3 }];
85-
// @ts-expect-error -- v5 removed callback support
85+
// @ts-ignore -- v5 removed callback support
8686
collection.insertMany(insertData, (err: any, result: any) => {
8787
resetMemoryExporter();
8888
done();
@@ -91,7 +91,7 @@ describe('MongoDBInstrumentation-Tracing-v4', () => {
9191

9292
afterEach(done => {
9393
if (shouldTest) {
94-
// @ts-expect-error -- v5 removed callback support
94+
// @ts-ignore -- v5 removed callback support
9595
collection.deleteMany({}, done);
9696
} else {
9797
done();

0 commit comments

Comments
 (0)