Skip to content

Commit

Permalink
fix(tests): work around type check failures
Browse files Browse the repository at this point in the history
  • Loading branch information
punya committed Jul 23, 2024
1 parent 90669b4 commit 5294588
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/plugins/test-trace-http2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ maybeSkipHttp2('Trace Agent integration with http2', () => {
});

it('should patch the necessary functions', () => {
assert.strictEqual(http2.connect['__wrapped'], true);
assert.strictEqual((http2 as any).connect['__wrapped'], true);

Check warning on line 84 in test/plugins/test-trace-http2.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

Check warning on line 84 in test/plugins/test-trace-http2.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
});

it('should accurately measure request time', done => {
Expand Down
2 changes: 1 addition & 1 deletion test/trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function get(): PluginTypes.Tracer {
}

export function setLoggerForTest(impl?: typeof logger.Logger) {
if (logger.Logger.__wrapped) {
if ((logger.Logger as any).__wrapped) {

Check warning on line 123 in test/trace.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

Check warning on line 123 in test/trace.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
shimmer.unwrap(logger, 'Logger');
}
if (impl) {
Expand Down

0 comments on commit 5294588

Please sign in to comment.