forked from open-telemetry/opentelemetry-js-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(instrumentation-mysql): fix test for mysql2 v3 (open-telemetry#2168)
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 open-telemetry#2168 Signed-off-by: Thomas Praxl <[email protected]>
- Loading branch information
Showing
3 changed files
with
64 additions
and
68 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -148,7 +148,7 @@ describe('[email protected]', () => { | |
host, | ||
password, | ||
database, | ||
} as mysqlTypes.PoolClusterOptions); | ||
}); | ||
}); | ||
|
||
afterEach(done => { | ||
|