Skip to content

Commit

Permalink
fix(instrumentation-mysql): fix test for mysql2 v3 (#2168)
Browse files Browse the repository at this point in the history
Update mysql2 dependency to latest version (@3.11.3) and fix
tests. Problems during `npm run compile` were fixed by
removing an unsafe and incorrect typecast.

Fixes #2168

Signed-off-by: Thomas Praxl <[email protected]>
  • Loading branch information
tpraxl committed Sep 24, 2024
1 parent 0d6ebde commit 11f6a52
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 68 deletions.
126 changes: 61 additions & 65 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@types/node": "18.6.5",
"@types/semver": "7.5.8",
"mocha": "7.2.0",
"mysql2": "2.3.3",
"mysql2": "3.11.3",
"nyc": "15.1.0",
"rimraf": "5.0.10",
"semver": "7.6.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ interface Result extends mysqlTypes.RowDataPacket {
solution: number;
}

describe('mysql2@2.x', () => {
describe('mysql2', () => {
let contextManager: AsyncHooksContextManager;
let connection: mysqlTypes.Connection;
let rootConnection: mysqlTypes.Connection;
Expand Down Expand Up @@ -148,7 +148,7 @@ describe('[email protected]', () => {
host,
password,
database,
} as mysqlTypes.PoolClusterOptions);
});
});

afterEach(done => {
Expand Down

0 comments on commit 11f6a52

Please sign in to comment.