Skip to content

Commit b75a0c1

Browse files
committed
fix: fix compilation issue
1 parent 2a41b7f commit b75a0c1

File tree

1 file changed

+0
-28
lines changed
  • plugins/node/opentelemetry-instrumentation-mysql/test

1 file changed

+0
-28
lines changed

plugins/node/opentelemetry-instrumentation-mysql/test/index.test.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ const database = process.env.MYSQL_DATABASE || 'test_db';
4040
const host = process.env.MYSQL_HOST || '127.0.0.1';
4141
const user = process.env.MYSQL_USER || 'otel';
4242
const password = process.env.MYSQL_PASSWORD || 'secret';
43-
const rootPassword = process.env.MYSQL_ROOT_PASSWORD || 'rootpw';
4443

4544
const instrumentation = new MySQLInstrumentation();
4645
instrumentation.enable();
@@ -49,16 +48,6 @@ instrumentation.disable();
4948
import * as mysqlTypes from 'mysql';
5049
import { AttributeNames } from '../src/AttributeNames';
5150

52-
// Helper function to setup the database
53-
const execPromise = (conn: mysqlTypes.Connection, command: string) => {
54-
return new Promise<void>((res, rej) => {
55-
conn.query(command, err => {
56-
if (err) rej(err);
57-
else res();
58-
});
59-
});
60-
};
61-
6251
describe('[email protected]', () => {
6352
let contextManager: AsyncLocalStorageContextManager;
6453
let connection: mysqlTypes.Connection;
@@ -81,23 +70,6 @@ describe('[email protected]', () => {
8170
} else {
8271
done();
8372
}
84-
85-
// const connection = mysqlTypes.createConnection({
86-
// port,
87-
// user: 'root',
88-
// host,
89-
// password: rootPassword,
90-
// database,
91-
// });
92-
// try {
93-
// await execPromise(connection, `SET GLOBAL log_output='TABLE'`);
94-
// await execPromise(connection, `SET GLOBAL general_log = 1`);
95-
// } catch (execErr) {
96-
// console.error('MySQL seup error: ', execErr);
97-
// this.skip();
98-
// } finally {
99-
// connection.end();
100-
// }
10173
});
10274

10375
beforeEach(() => {

0 commit comments

Comments
 (0)