From dc1a360eab2344eed4be3edbcdc784b50fd0f46f Mon Sep 17 00:00:00 2001 From: Chris Richards Date: Thu, 10 Feb 2022 11:14:51 +0000 Subject: [PATCH] fix: fix the compile error not surfaced by test command --- .../test/aws-sdk-v3.test.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/node/opentelemetry-instrumentation-aws-sdk/test/aws-sdk-v3.test.ts b/plugins/node/opentelemetry-instrumentation-aws-sdk/test/aws-sdk-v3.test.ts index 9014c36695..411452274c 100644 --- a/plugins/node/opentelemetry-instrumentation-aws-sdk/test/aws-sdk-v3.test.ts +++ b/plugins/node/opentelemetry-instrumentation-aws-sdk/test/aws-sdk-v3.test.ts @@ -417,15 +417,9 @@ describe('instrumentation-aws-sdk-v3', () => { }); instrumentation.enable(); - let request: - | (ClientRequest & { - headers: Record; - }) - | undefined; nock(`https://lambda.${region}.amazonaws.com/`) .post('/2015-03-31/functions/ot-test-function-name/invocations') - .reply(function (uri, requestBody, callback) { - request = this.req; + .reply((uri, requestBody, callback) => { callback(null, [ 200, 'null',